Documentation ¶
Index ¶
- type Event
- type Impl
- func (l *Impl) Dbg() Event
- func (l *Impl) Err(err error) Event
- func (l *Impl) Fatalf(format string, v ...any)
- func (l *Impl) Ftl() Event
- func (l *Impl) Inf() Event
- func (l *Impl) Logger() zerolog.Logger
- func (l *Impl) New(name string) Logger
- func (l *Impl) Printf(format string, v ...any)
- func (l *Impl) Trc() Event
- func (l *Impl) Wrn() Event
- type Logger
- type ServiceEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Impl ¶
type Impl struct {
// contains filtered or unexported fields
}
Impl is a struct that represents a logger
type Logger ¶
type Logger interface { New(name string) Logger Logger() zerolog.Logger Trc() Event Dbg() Event Inf() Event Wrn() Event Err(err error) Event Ftl() Event // goose Fatalf(format string, v ...any) Printf(format string, v ...any) }
Logger is an interface that represents a logger
type ServiceEvent ¶
ServiceEvent is a struct that represents a logger event
func (*ServiceEvent) Ctx ¶
func (e *ServiceEvent) Ctx(ctx context.Context) Event
Ctx returns an event with context
func (*ServiceEvent) Err ¶
func (e *ServiceEvent) Err(err error) Event
Err returns an event with error
func (*ServiceEvent) Msg ¶
func (e *ServiceEvent) Msg(msg string, args ...any)
Msg returns a message
func (*ServiceEvent) Values ¶
func (e *ServiceEvent) Values(values ...any) Event
Values returns an event with pair (key=value)
Click to show internal directories.
Click to hide internal directories.