Documentation
¶
Index ¶
- Constants
- Variables
- func AddColorPrefixes()
- func Debug(s ...interface{})
- func DefaultPrefixes()
- func Error(s ...interface{})
- func Fatal(s ...interface{})
- func Info(s ...interface{})
- func PrintWithLevel(lvl Level, msg string) error
- func SetFlags(f int)
- func SetLevel(l Level)
- func SetLevelFromFlag() error
- func SetLevelStr(l string) error
- func Trace(s ...interface{})
- func Warn(s ...interface{})
- type Level
Constants ¶
View Source
const ( InfoColor = "\033[1;34m" // blue WarningColor = "\033[1;33m" // yellow ErrorColor = "\033[1;31m" // red DebugColor = "\033[0;36m" // ?? ResetColor = "\033[0m" )
Variables ¶
View Source
var ErrLevelNotValid = errors.New("that log level is not valid")
View Source
var ErrLevelStrNotValid = errors.New("that string is not a valid log level")
Functions ¶
func AddColorPrefixes ¶
func AddColorPrefixes()
func DefaultPrefixes ¶
func DefaultPrefixes()
func PrintWithLevel ¶
func SetLevelFromFlag ¶
func SetLevelFromFlag() error
func SetLevelStr ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.