Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidLogLevel = errors.New("invalid loglevel")
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface {
Log(LogLevel, ...interface{})
}
Logger interface specification
type StdLog ¶
StdLog turns a standard logger into a Logger interface implementation
func (StdLog) Log ¶
Log will output a log line with the caller function, line and the arguments Arguments are primarily considered in key/value pairs, i.e. Log("key1", "value1", "key2", "value2") If there is no 2nd value argument given, the single argument will be used, i.e. Log("Single argument") or Log("key1", "value1", "single argument")
Click to show internal directories.
Click to hide internal directories.