Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type LoggerParam ¶
type LoggerParam struct {
// contains filtered or unexported fields
}
LoggerParam 日志参数
func NewLogger ¶
func NewLogger(path string, maxSize, maxBackups, maxAge int, compress bool) *LoggerParam
NewLogger 创建日志参数对象 @param path 日志文件路径 @param maxSize 日志最大存储量 @param maxBackups 日志最大备份数 @param maxAge 日志最大存储天数 @param compress 是否压缩 @return 日志参数对象
func (*LoggerParam) New ¶
func (log *LoggerParam) New(logs map[string]Level) *zap.SugaredLogger
New 创建Uber日志对象 @param logs 日志文件 @return uber日志对象
Click to show internal directories.
Click to hide internal directories.