Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var LogLevel = zap.NewAtomicLevel()
LogLevel log level 定义
View Source
var Logger *zap.SugaredLogger
Logger logger 定义
Functions ¶
func TimeEncoder ¶
func TimeEncoder(t time.Time, enc zapcore.PrimitiveArrayEncoder)
TimeEncoder 设置日志格式
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.