Documentation
¶
Index ¶
- func Debug(message string, v ...any)
- func DisableDates()
- func Error(message string, v ...any)
- func Fatal(v ...any)
- func Info(message string, v ...any)
- func IsDebug() bool
- func IsTrace() bool
- func Loggable(l Level) bool
- func SetLevel(newLevel Level)
- func Trace(message string, v ...any)
- func Warn(message string, v ...any)
- type Level
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debug ¶
Debug prints the given message, if the current log level is DEBUG or lower
func Error ¶
Error prints the given message, if the current log level is ERROR or lower
func Info ¶
Info prints the given message, if the current log level is INFO or lower
func IsDebug ¶
func IsDebug() bool
IsDebug returns true if the current log level is DebugLevel or below
func Loggable ¶
Loggable returns true if the given log level is lower or equal to the current log level
func Trace ¶
Trace prints the given message, if the current log level is TRACE
Types ¶
Click to show internal directories.
Click to hide internal directories.