Documentation ¶
Index ¶
Constants ¶
View Source
const ( DebugLevel = LogLevel(zap.DebugLevel) InfoLevel = LogLevel(zap.InfoLevel) WarnLevel = LogLevel(zap.WarnLevel) ErrorLevel = LogLevel(zap.ErrorLevel) PanicLevel = LogLevel(zap.DPanicLevel) )
日志等级
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogOutputTarget ¶
type LogOutputTarget int8
type Logger ¶
type Logger interface { Debug(msg ...any) Debugs(v string, msg ...any) StackDebug(msg ...any) StackDebugs(v string, msg ...any) Info(msg ...any) Infos(v string, msg ...any) StackInfo(msg ...any) StackInfos(v string, msg ...any) Warn(msg ...any) Warns(v string, msg ...any) StackWarn(msg ...any) StackWarns(v string, msg ...any) Error(msg ...any) Errors(v string, msg ...any) StackError(msg ...any) StackErrors(v string, msg ...any) Panic(msg ...any) Panics(v string, msg ...any) StackPanic(msg ...any) StackPanics(v string, msg ...any) }
Logger 日志接口
func NewCustomSkipLogger ¶ added in v0.2.1
NewCustomSkipLogger 自定义上跳级别
type Options ¶
type Options func(*logger)
func LogFileToLevel ¶ added in v0.1.8
func LogFileToLevel() Options
LogFileToLevel 将日志输出到文件时,对文件进行等级划分
Click to show internal directories.
Click to hide internal directories.