Documentation ¶
Index ¶
- Variables
- func Attach(kvs ...string)
- func Ctx(ctx context.Context) *zerolog.Logger
- func Debug() *zerolog.Event
- func DebugEnable() bool
- func Error() *zerolog.Event
- func Fatal() *zerolog.Event
- func Info() *zerolog.Event
- func Log() *zerolog.Event
- func Logger() zerolog.Logger
- func NewConsoleWriter() io.Writer
- func NewFileWriter(c FileWriterConfig) io.Writer
- func Panic() *zerolog.Event
- func SetLogger(l zerolog.Logger)
- func Trace() *zerolog.Event
- func Warn() *zerolog.Event
- func With() zerolog.Context
- func WithLevel(level zerolog.Level) *zerolog.Event
- type FileWriterConfig
- type L
- type Level
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TraceLevel = zerolog.TraceLevel DebugLevel = zerolog.DebugLevel InfoLevel = zerolog.InfoLevel WarnLevel = zerolog.WarnLevel ErrorLevel = zerolog.ErrorLevel FatalLevel = zerolog.FatalLevel PanicLevel = zerolog.PanicLevel NoLevel = zerolog.NoLevel Disabled = zerolog.Disabled )
Functions ¶
func DebugEnable ¶ added in v1.9.0
func DebugEnable() bool
func NewConsoleWriter ¶
func NewFileWriter ¶
func NewFileWriter(c FileWriterConfig) io.Writer
Types ¶
type FileWriterConfig ¶
Click to show internal directories.
Click to hide internal directories.