Documentation ¶
Index ¶
- func AddRootOutput(output io.Writer)
- func Debug(format string, messages ...interface{})
- func Error(format string, messages ...interface{})
- func Fatal(format string, messages ...interface{})
- func Info(format string, messages ...interface{})
- func SetRootLevel(level Level)
- func Trace(format string, messages ...interface{})
- func Warn(format string, messages ...interface{})
- type Level
- type Logger
- func (l *Logger) Debug(format string, messages ...interface{})
- func (l *Logger) Error(format string, messages ...interface{})
- func (l *Logger) Fatal(format string, messages ...interface{})
- func (l *Logger) Info(format string, messages ...interface{})
- func (l *Logger) Printf(level Level, format string, messages ...interface{})
- func (l *Logger) Trace(format string, messages ...interface{})
- func (l *Logger) Warn(format string, messages ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddRootOutput ¶
SetRootOutput assigns an io.Writer to root logger
func SetRootLevel ¶
func SetRootLevel(level Level)
SetRootLevel sets the loglvevel of the root logger
Types ¶
type Level ¶
type Level uint8
Level represents the loglevel, from TRACE (0) to FATAL (6)
func LevelFromString ¶
LevelFromString reconstructs the loglevel from a given string. It is case insensitive and recognizes some commong loglevel name synonyms, such as WARN=WARNING, ERR=ERROR
Click to show internal directories.
Click to hide internal directories.