Documentation ¶
Index ¶
- Variables
- func CreateLog(logPath string)
- func Debug(v ...any)
- func Debugf(format string, v ...any)
- func Error(v ...any)
- func Errorf(format string, v ...any)
- func Info(v ...any)
- func Infof(format string, v ...any)
- func Recover()
- func RegisterOut(outFunc func(level Level, format string, v ...any))
- func SetLogConfig(fn func(n *LogConfig))
- func Trace(v ...any)
- func Tracef(format string, v ...any)
- func Warn(v ...any)
- func Warnf(format string, v ...any)
- type Level
- type LogConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var LogFilePath string
Functions ¶
func RegisterOut ¶
RegisterOut 注册日志输出格式
func SetLogConfig ¶
func SetLogConfig(fn func(n *LogConfig))
Types ¶
Click to show internal directories.
Click to hide internal directories.