Documentation ¶
Index ¶
Constants ¶
View Source
const ( //Debug has verbose message Debug = "debug" //Info is default log level Info = "info" //Warn is for logging messages about possible issues Warn = "warn" //Error is for logging errors Error = "error" //Fatal is for logging fatal messages. The sytem shutsdown after logging the message. Fatal = "fatal" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Configuration ¶
Configuration stores the config for the logger For some loggers there can only be one level across writers, for such the level of Console is picked by default
type Logger ¶
type Logger interface { Debugf(format string, args ...interface{}) Infof(format string, args ...interface{}) Warnf(format string, args ...interface{}) Errorf(format string, args ...interface{}) Fatalf(err error, format string, args ...interface{}) WithFields(keyValues map[string]interface{}) Logger }
func WithFields ¶
Click to show internal directories.
Click to hide internal directories.