Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Logger 日志实例 Logger *zap.Logger )
Functions ¶
Types ¶
type Config ¶
type Config struct {
Filename string
RollingLogMaxSize int
RollingLogMaxBackups int
RollingLogMaxAge int
Compress bool
LastLog func(ctx context.Context) []zap.Field
Level zapcore.Level
StdOut bool
}
Config log 配置
Click to show internal directories.
Click to hide internal directories.