Documentation ¶
Index ¶
- func Caller(skip int) (file string, line int)
- func Debug(message string, args ...any)
- func Error(message string, args ...any)
- func Fatal(message string, args ...any)
- func Info(message string, args ...any)
- func Log(level LogLevel, file string, line int, message string, args ...any)
- func SetLevel(l LogLevel)
- func Trace(message string, args ...any)
- func Warn(message string, args ...any)
- type LogLevel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Caller ¶
Caller caches the result for runtime.Caller(). Inspired by https://zhuanlan.zhihu.com/p/403417640
Types ¶
Click to show internal directories.
Click to hide internal directories.