Documentation
¶
Index ¶
- Constants
- func Debug(tag string, data ...any)
- func DebugLazy(tag string, dataProvider func() []any)
- func Error(tag string, data ...any)
- func Fatal(tag string, data ...any)
- func GetLogger(level int) *log.Logger
- func Info(tag string, data ...any)
- func InfoLazy(tag string, dataProvider func() []any)
- func Init(level int)
- func LogLevel() int
- func SetWriter(w io.Writer)
- type Loggable
- type Logger
Constants ¶
View Source
const ( DEBUG = iota INFO ERROR FATAL )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Logger ¶
type Logger interface { Debug(msg ...any) DebugLazy(dataProvider func() []any) Info(msg ...any) InfoLazy(dataProvider func() []any) Error(msg ...any) Fatal(msg ...any) LogDebug(msg ...any) LogDebugLazy(dataProvider func() []any) LogInfo(msg ...any) LogInfoLazy(dataProvider func() []any) LogError(msg ...any) LogIfError(when string, err error) LogFatal(msg ...any) }
func NewWithTag ¶ added in v0.8.0
Click to show internal directories.
Click to hide internal directories.