Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Field ¶
type Field struct { Key string `yaml:"key" json:"key"` Value interface{} `yaml:"value" json:"value"` }
type Logger ¶
type Logger interface { SkipCaller(skip int) Logger With(fields ...Field) Logger WithError(err error) Logger Debug(msg string, fields ...Field) Info(msg string, fields ...Field) Warn(msg string, fields ...Field) Error(msg string, fields ...Field) Panic(msg string, fields ...Field) Fatal(msg string, fields ...Field) Sync() error Close() error }
var NopLogger Logger = nopLogger{}
type Option ¶
type Option func(*options)
func WithConsole ¶
func WithFields ¶
func WithLevelText ¶
func WithTimeLayout ¶
Click to show internal directories.
Click to hide internal directories.