# Packages
No description provided by the author
# Functions
Debug calls the default logger's Debug method.
Debugf calls the default logger's Debugf method.
Debugw logs a message with some additional context.
DefaultConfig 默认配置,使用两个文件分别记录警告和错误.
Error calls the default logger's Error method.
Errorf calls the default logger's Errorf method.
Errorw logs a message with some additional context.
Fatal calls the default logger's Fatal method and then os.Exit(1).
Fatalf calls the default logger's Fatalf method and then os.Exit(1).
Fatalw logs a message with some additional context.
FileWithLineNum return the file name and line number of the current file.
FormatWeek format time as the week of the year.
GetAbsPath 使用真实的绝对路径.
GetLevelEnabler 级别过滤.
GetLogPath 使用绝对路径.
GetZapLevel 转为zap的Level.
Info calls the default logger's Info method.
Infof calls the default logger's Infof method.
Infow logs a message with some additional context.
No description provided by the author
NewLogger 指定日志目录,普通和错误日志分文件存放.
NewLoggerCustom 根据配置产生记录器.
NewLoggerURL 单路径日志,指定日志级别和路径.
Panic calls the default logger's Panic method.
Panicf calls the default logger's Tracef method.
Panicw logs a message with some additional context.
ReplaceCores 替换为多种输出的Core.
SetLogger sets the default logger and the system defaultLogger.
SetLoggerDir sets the default logger in the dir.
SingleFileConfig 使用单个文件的记录器.
Trace calls the default logger's Trace method.
Tracef calls the default logger's Tracef method.
Tracew logs a message with some additional context.
Warn calls the default logger's Warn method.
Warnf calls the default logger's Warnf method.
Warnw logs a message with some additional context.
WithContext return the defaultLogger.
# Variables
LogLevels 日志等级.
# Structs
LogConfig 日志配置.
Output 输出配置.
RotateFile is an io.WriteCloser that writes to the specified filename.