Documentation ¶
Index ¶
- Variables
- type Level
- type Logger
- func (l *Logger) Debug(input ...interface{})
- func (l *Logger) Debugf(input ...interface{})
- func (l *Logger) Error(input ...interface{})
- func (l *Logger) Errorf(input ...interface{})
- func (l *Logger) Fatal(input ...interface{})
- func (l *Logger) Fatalf(input ...interface{})
- func (l *Logger) Info(input ...interface{})
- func (l *Logger) Infof(input ...interface{})
- func (l *Logger) Rotate(ctx context.Context, maxSize int64, maxAge time.Duration, delay time.Duration)
- func (l *Logger) SetOutput(path string) error
- func (l *Logger) Trace(input ...interface{})
- func (l *Logger) Tracef(input ...interface{})
- func (l *Logger) Warn(input ...interface{})
- func (l *Logger) Warnf(input ...interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var Colorfuncs = [...]func(...interface{}) string{
ansi.Blue,
ansi.Cyan,
ansi.Green,
ansi.Yellow,
ansi.Red,
fatalStyle,
}
ColorFuncs contains the functions to color in the Levels
View Source
var KeptLogs = uint(10)
View Source
var LevelStrings = [...]string{
"TRACE",
"DEBUG",
"INFO ",
"WARN ",
"ERROR",
"FATAL",
}
LevelStrings allows for easy renaming of Levels
View Source
var TimeFormat = "2006-01-02 15:04:05"
TimeFormat sets the used timeformat. The default is DDMMYYYYHHMMSS
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.