Documentation ¶
Index ¶
- Constants
- Variables
- type Logger
- func (l *Logger) Debug(format string, args ...interface{})
- func (l *Logger) Error(format string, args ...interface{})
- func (l *Logger) Fatal(format string, args ...interface{})
- func (l *Logger) Important(format string, args ...interface{})
- func (l *Logger) Info(format string, args ...interface{})
- func (l *Logger) Log(level int, format string, args ...interface{})
- func (l *Logger) SetDebug(d bool)
- func (l *Logger) SetSilent(s bool)
- func (l *Logger) Warn(format string, args ...interface{})
Constants ¶
View Source
const ( // FATAL ... FATAL = 5 // ERROR ... ERROR = 4 // WARN ... WARN = 3 // IMPORTANT ... IMPORTANT = 2 // INFO ... INFO = 1 // DEBUG ... DEBUG = 0 )
Variables ¶
View Source
var LogColors = map[int]*color.Color{ FATAL: color.New(color.FgRed).Add(color.Bold), ERROR: color.New(color.FgRed), WARN: color.New(color.FgYellow), IMPORTANT: color.New(color.Bold), DEBUG: color.New(color.FgCyan).Add(color.Faint), }
LogColors defines message output colors
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.