Documentation
¶
Index ¶
Constants ¶
View Source
const Error = LogLevel("error")
Error sets level=error in the log output
View Source
const Fatal = LogLevel("fatal")
Fatal sets level=fatal in the log output
View Source
const Info = LogLevel("info")
Info is sets level=info in the log output
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogContext ¶
type LogLevel ¶
type LogLevel string
LogLevel just wraps a string to be able to add LogContext specific to log levels
func (LogLevel) LogContext ¶
LogContext returns the map that states that key value of `level={{l}}`
type Logger ¶
type Logger interface { With(ctxs ...LogContext) Logger WithMap(mapCtx map[string]string) Logger WithKeyValue(key, value string) Logger Info() Logger Error() Logger Fatal() Logger Log(msg string) LogError(msg string, err error) error LogErrorF(format string, a ...interface{}) error }
func NewBufferLogger ¶
func NewDefaultLogger ¶
func NewDefaultLogger() Logger
func NewNopLogger ¶
func NewNopLogger() Logger
Click to show internal directories.
Click to hide internal directories.