Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultLogLevel Level = ErrorLevel DefaultLogger Logger = &logger{ logLevel: &DefaultLogLevel, writer: defaultWriter, output: defaultOutput, } )
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface { SetOutput(w io.Writer) SetLogLevel(level string) With(fields ...Field) Logger Named(name string) 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) }
func FromContext ¶
Click to show internal directories.
Click to hide internal directories.