Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Level ¶
const ( DebugLevel Level = zap.DebugLevel // -1 InfoLevel Level = zap.InfoLevel // 0, default level WarnLevel Level = zap.WarnLevel // 1 ErrorLevel Level = zap.ErrorLevel // 2 DPanicLevel Level = zap.DPanicLevel // 3, used in development log // PanicLevel logs a message, then panics. PanicLevel Level = zap.PanicLevel // 4 // FatalLevel logs a message, then calls os.Exit(1). FatalLevel Level = zap.FatalLevel // 5 )
type LevelEnablerFunc ¶
type RotateOptions ¶
type TeeOption ¶
type TeeOption struct { Filename string Rotate RotateOptions LevelEnablerFunc LevelEnablerFunc }
Click to show internal directories.
Click to hide internal directories.