Documentation
¶
Index ¶
Constants ¶
View Source
const Discard noop = "noop"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface { // Named returns a new logger with its previous name followed by a dot, // followed by the provided name. Named(name string) Logger // SetLevel sets the logger level. SetLevel(level Level) // Leveled returns a copy of the current logger with a different level. Leveled(level Level) Logger // WithFields returns a copy of the current logger with extra provided // fields that will be present in every emitted log message. WithFields(keysAndValues ...any) Logger // Skipping returns a copy of the current logger that will skip a given // number of call stacks. Skipping(count uint) Logger Debug(msg string, keysAndValues ...any) Info(msg string, keysAndValues ...any) Warning(msg string, keysAndValues ...any) Error(err error, msg string, keysAndValues ...any) Fatal(msg string, keysAndValues ...any) FatalError(err error, msg string, keysAndValues ...any) }
func NewStdJSON ¶ added in v0.0.8
Click to show internal directories.
Click to hide internal directories.