Documentation ¶
Index ¶
- func Debug(msg string, fields ...zap.Field)
- func Error(msg string, fields ...zap.Field)
- func ErrorHideStack(msg string, fields ...zap.Field)
- func ErrorWithStack(msg, stack string, fields ...zap.Field)
- func Info(msg string, fields ...zap.Field)
- func SetLogDir(dir string)
- func SetLogRotate(t int)
- func SetProd(isProd bool)
- func SetWriteFileWithDev(isWrite bool)
- func Warn(msg string, fields ...zap.Field)
- type MLogger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorHideStack ¶
func ErrorWithStack ¶
ErrorWithStack 通过额外的堆栈信息打印错误日志
func SetWriteFileWithDev ¶ added in v0.0.6
func SetWriteFileWithDev(isWrite bool)
SetWriteFileWithDev 设置开发环境下写入文件
Types ¶
Click to show internal directories.
Click to hide internal directories.