Documentation
¶
Index ¶
- func CreateProductZapLogger(op ...Option) (*zap.Logger, error)
- func NewZapWriter(logger *zap.Logger, level zapcore.Level) io.Writer
- type LogConfig
- type Option
- func SetConsoleWriterSyncer(consoleWriter bool) Option
- func SetLogCompress(compress bool) Option
- func SetLogFilename(filename string) Option
- func SetLogLevel(level zapcore.Level) Option
- func SetLogLevelKey(levelKey string) Option
- func SetLogMaxAge(maxAge int) Option
- func SetLogMaxBackups(maxBackups int) Option
- func SetLogMaxSize(maxSize int) Option
- type ZapWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateProductZapLogger ¶
CreateProductZapLogger 创建一个生产级别的 zap 日志记录器。
Types ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
An Option configures a Logger.
func SetConsoleWriterSyncer ¶
Click to show internal directories.
Click to hide internal directories.