Documentation
¶
Index ¶
- func ChangeOutput(w io.Writer)
- func Close()
- func Debug(format string, args ...any)
- func EnableDebug()
- func EnableStackOnWarns()
- func Error(format string, args ...any)
- func ForceColors(enable bool)
- func HidePackagePrefix()
- func Info(format string, args ...any)
- func Panic(format string, args ...any)
- func Warn(format string, args ...any)
- type LumoError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangeOutput ¶
func EnableDebug ¶
func EnableDebug()
func EnableStackOnWarns ¶
func EnableStackOnWarns()
Makes logger attach stack traces below warn logs.
func HidePackagePrefix ¶
func HidePackagePrefix()
Makes logger only display function names in stack traces.
Types ¶
type LumoError ¶
type LumoError struct {
// contains filtered or unexported fields
}
Custom error wrapper that holds a stack trace and simple, additional context.
func WrapString ¶
Click to show internal directories.
Click to hide internal directories.
