Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Error = func(msg string, fields ...zap.Field) { log.Error(msg, fields...) } ErrorF = func(msg string, args ...interface{}) { slog.Errorf(msg, args...) } Warn = func(msg string, fields ...zap.Field) { log.Warn(msg, fields...) } WarnF = func(msg string, args ...interface{}) { slog.Warnf(msg, args...) } Info = func(msg string, fields ...zap.Field) { log.Info(msg, fields...) } InfoF = func(msg string, args ...interface{}) { slog.Infof(msg, args...) } Debug = func(msg string, fields ...zap.Field) { log.Debug(msg, fields...) } DebugF = func(msg string, args ...interface{}) { slog.Debugf(msg, args...) } )
Functions ¶
func GetFileLog ¶
func GetFileLog() zapcore.WriteSyncer
func InitLogger ¶
InitLogger 日志初始化, 参数: 日志文件名, 日志级别, 日志大小, 日志旧文件保留天数
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.