Documentation ¶
Index ¶
- Constants
- func CustomTimeEncoder(t time.Time, enc zapcore.PrimitiveArrayEncoder)
- func DPanic(msg string, fields ...zap.Field)
- func Debug(msg string, fields ...zap.Field)
- func Error(msg string, fields ...zap.Field)
- func Fatal(msg string, fields ...zap.Field)
- func Info(msg string, fields ...zap.Field)
- func Panic(msg string, fields ...zap.Field)
- func Warn(msg string, fields ...zap.Field)
- func Zap() (logger *zap.Logger)
Constants ¶
View Source
const ( Director = "logs" LogLevel = "info" ShowLine = true StacktraceKey = "stacktrace" EncodeLevel = "LowercaseLevelEncoder" Format = "console" LinkName = "latest.log" InConsole = true Prefix = "[YUEBAN]" )
Variables ¶
This section is empty.
Functions ¶
func CustomTimeEncoder ¶
func CustomTimeEncoder(t time.Time, enc zapcore.PrimitiveArrayEncoder)
自定义日志输出时间格式
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.