Documentation
¶
Index ¶
- Constants
- func Debug(format string, args ...interface{})
- func DisableColors()
- func Err(format string, args ...interface{})
- func Fatal(format string, args ...interface{})
- func Info(format string, args ...interface{})
- func SetIgnoreLevel(ignore []LogLevel)
- func SetLevel(l LogLevel)
- func Trace(format string, args ...interface{})
- func Warn(format string, args ...interface{})
- type LogLevel
Constants ¶
View Source
const ( Reset = "\033[0m" Purple = "\033[35m" Red = "\033[31m" Yellow = "\033[33m" White = "\033[37m" )
ANSI color codes
Variables ¶
This section is empty.
Functions ¶
func Fatal ¶
func Fatal(format string, args ...interface{})
Fatal logs a fatal message and exits the program
func SetIgnoreLevel ¶
func SetIgnoreLevel(ignore []LogLevel)
SetIgnoreLevel sets the log levels to ignore
Types ¶
Click to show internal directories.
Click to hide internal directories.