Documentation ¶
Overview ¶
Package log is a zero-dependency colorful, levelled logger.
Index ¶
- Constants
- func Debugf(format string, args ...any)
- func Error(e error)
- func Errorf(format string, args ...any)
- func Fatal(e error)
- func Fatalf(format string, args ...any)
- func Infof(format string, args ...any)
- func SetLevel(level int)
- func SetOutput(w io.Writer)
- func SetTimeFormat(format string)
- func Tracef(format string, args ...any)
- func Warnf(format string, args ...any)
Constants ¶
View Source
const ( LevelError = iota LevelWarn LevelInfo LevelDebug LevelTrace )
Variables ¶
This section is empty.
Functions ¶
func SetLevel ¶
func SetLevel(level int)
LevelError = 0 LevelWarn = 1 LevelInfo = 2 LevelDebug = 3 LevelTrace = 4
func SetTimeFormat ¶
func SetTimeFormat(format string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.