Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultLogLevel Level = ErrorLevel DefaultOutput io.Writer = os.Stdout DefaultWriter Writer = JSONWriter() DefaultLogger Logger = &logger{ writer: DefaultWriter, output: DefaultOutput, } )
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface { 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.