Documentation ¶
Overview ¶
Package flog provides human-optimized, formatted logging.
Index ¶
- Variables
- func Error(msg string, args ...interface{})
- func Fatal(msg string, args ...interface{})
- func Info(msg string, args ...interface{})
- func Log(l Level, m string, args ...interface{})
- func Success(msg string, args ...interface{})
- type Level
- type Logger
- func (l *Logger) Error(msg string, args ...interface{})
- func (l *Logger) Fatal(msg string, args ...interface{})
- func (l *Logger) Info(msg string, args ...interface{})
- func (l *Logger) Log(lvl Level, msg string, args ...interface{})
- func (l *Logger) Success(msg string, args ...interface{})
- func (l *Logger) WithPrefix(p string, args ...interface{}) *Logger
Constants ¶
This section is empty.
Variables ¶
View Source
var ( INFO = Level(color.HiBlueString("INFO")) SUCCESS = Level(color.HiGreenString("SUCCESS")) ERROR = Level(color.RedString("ERROR")) FATAL = Level(color.RedString("FATAL")) )
Functions ¶
Types ¶
type Logger ¶
func (*Logger) WithPrefix ¶
Click to show internal directories.
Click to hide internal directories.