Documentation
¶
Index ¶
- func Debug(msg string, fields ...zap.Field)
- func Error(msg string, fields ...zap.Field)
- func GetLogger() *zap.Logger
- func Info(msg string, fields ...zap.Field)
- func NewLogger(opt *Option)
- func Sync()
- func Warn(msg string, fields ...zap.Field)
- type LogFormat
- type LogLevel
- type Option
- type OutputConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option struct {
Format LogFormat // 日志格式
Level LogLevel // 日志级别
Output *OutputConfig // 输出配置
}
type OutputConfig ¶ added in v1.3.0
Click to show internal directories.
Click to hide internal directories.