Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Level = zap.NewAtomicLevelAt(zap.InfoLevel)
Level 日志级别
Functions ¶
func NewJSONLogger ¶
NewJSONLogger 创建JSON日志
Types ¶
type Config ¶
type Config struct {
Dir string
ID string
Name string
Version string
Debug bool
MaxAge time.Duration
RotationTime time.Duration
RotationSize int64 // 单位字节
Level string // debug/info/warn/error
Sampler Sampler // 采样器
}
Config ....
Click to show internal directories.
Click to hide internal directories.