Documentation
¶
Index ¶
- Constants
- func Debug(msg string)
- func Error(msg string)
- func Fatal(msg string)
- func Info(msg string)
- func Panic(msg string)
- func ReplaceDefault(l *Logger)
- func Sync() error
- func Warn(msg string)
- type Logger
- func (l *Logger) Debug(msg string, loptions *wlcore.Loptions)
- func (l *Logger) Error(msg string, loptions *wlcore.Loptions)
- func (l *Logger) Fatal(msg string, loptions *wlcore.Loptions)
- func (l *Logger) Info(msg string, loptions *wlcore.Loptions)
- func (l *Logger) Panic(msg string, loptions *wlcore.Loptions)
- func (l *Logger) SetLevel(level zapcore.Level)
- func (l *Logger) Sync() error
- func (l *Logger) Warn(msg string, loptions *wlcore.Loptions)
Constants ¶
View Source
const ( LowercaseLevelEncoder = "LowercaseLevelEncoder" // 小写编码器(默认) LowercaseColorLevelEncoder = "LowercaseColorLevelEncoder" // 小写编码器带颜色 CapitalLevelEncoder = "CapitalLevelEncoder" // 大写编码器 CapitalColorLevelEncoder = "CapitalColorLevelEncoder" // 大写编码器带颜色 )
View Source
const ( DebugLevel = zapcore.DebugLevel InfoLevel = zapcore.InfoLevel WarnLevel = zapcore.WarnLevel ErrorLevel = zapcore.ErrorLevel PanicLevel = zapcore.PanicLevel FatalLevel = zapcore.FatalLevel )
Variables ¶
This section is empty.
Functions ¶
func ReplaceDefault ¶
func ReplaceDefault(l *Logger)
Types ¶
Click to show internal directories.
Click to hide internal directories.