Documentation ¶ Index ¶ Variables func GetLogger() *zap.SugaredLogger func GetWrite(path string, maxSize, maxBackups, maxAge int, compress bool) io.Writer func Init(path string, maxSize, maxBackups, maxAge int, compress bool, ...) type Level Constants ¶ This section is empty. Variables ¶ View Source var ( DebugLevel = func(level zapcore.Level) bool { return level == zap.DebugLevel } InfoLevel = func(level zapcore.Level) bool { return level == zap.InfoLevel } ErrorLevel = func(level zapcore.Level) bool { return level > zap.InfoLevel } ) Functions ¶ func GetLogger ¶ func GetLogger() *zap.SugaredLogger GetLogger 获取日志对象 func GetWrite ¶ func GetWrite(path string, maxSize, maxBackups, maxAge int, compress bool) io.Writer func Init ¶ func Init(path string, maxSize, maxBackups, maxAge int, compress bool, logMap map[string]Level) Init 初始化日志参数 Types ¶ type Level ¶ type Level func(level zapcore.Level) bool Source Files ¶ View all Source files model.go root.go Click to show internal directories. Click to hide internal directories.