Documentation ¶
Overview ¶
Package logger wrapper for zerolog
Index ¶
- type ZeroConfig
- type Zerolog
- func (l *Zerolog) Debug() *zerolog.Event
- func (l *Zerolog) Error() *zerolog.Event
- func (l *Zerolog) Fatal(v ...interface{})
- func (l *Zerolog) Fatalf(format string, v ...interface{})
- func (l *Zerolog) Info() *zerolog.Event
- func (l *Zerolog) Panic() *zerolog.Event
- func (l *Zerolog) Print(v ...interface{})
- func (l *Zerolog) Printf(format string, v ...interface{})
- func (l Zerolog) SubLogger(zero zerolog.Logger) *Zerolog
- func (l *Zerolog) Warn() *zerolog.Event
- func (l *Zerolog) With() zerolog.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ZeroConfig ¶
type ZeroConfig struct { Level string `envconfig:"LEVEL"` TimeFieldFormat string `envconfig:"TIME_FIELD_FORMAT"` PrettyPrint bool `envconfig:"PRETTY_PRINT"` RedirectStdLogger bool `envconfig:"REDIRECT_STD_LOGGER"` DisableSampling bool `envconfig:"DISABLE_SAMPLING"` ErrorStack bool `envconfig:"ERROR_STACK"` ShowCaller bool `envconfig:"SHOW_CALLER"` }
ZeroConfig logger settings
type Zerolog ¶
type Zerolog struct {
// contains filtered or unexported fields
}
Zerolog object capable of interacting with Zerolog
func NewDefaultZerolog ¶
func NewDefaultZerolog() *Zerolog
NewDefaultZerolog creates Zerolog with default settings
func (*Zerolog) Fatal ¶
func (l *Zerolog) Fatal(v ...interface{})
Fatal sends the event with fatal level
func (*Zerolog) Print ¶
func (l *Zerolog) Print(v ...interface{})
Print sends the event with debug level
Click to show internal directories.
Click to hide internal directories.