Documentation ¶
Overview ¶
Package logger contains logger API definition, wrapper that can be used around any other logger.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidLogLevel = errors.New("unrecognized log level")
ErrInvalidLogLevel indicates an unrecognized log level.
Functions ¶
This section is empty.
Types ¶
type Level ¶
type Level int
Level represents severity level while logging.
func (*Level) UnmarshalText ¶
UnmarshalText returns log Level for the given string representation.
type Logger ¶
type Logger interface { // Debug logs any object in JSON format on debug level. Debug(string) // Info logs any object in JSON format on info level. Info(string) // Warn logs any object in JSON format on warning level. Warn(string) // Error logs any object in JSON format on error level. Error(string) }
Logger specifies logging API.
Click to show internal directories.
Click to hide internal directories.