Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLevelChangerOption ¶
func NewLevelChangerOption(from, to zapcore.Level, conditions ...LevelChangeCondition) zap.Option
Create a zap option that wraps a core with a new levelChangerCore.
Types ¶
type LevelChangeCondition ¶
func FilePathLevelChangeCondition ¶
func FilePathLevelChangeCondition(pathSubstr string) LevelChangeCondition
Make a level change condition that passes if the Entry's Caller File contains a substring. Can be used to change the level of all logs from some file or package.
Click to show internal directories.
Click to hide internal directories.