Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWithOptions ¶
NewWithOptions returns a logr.Logger, LogSink is implemented by zerolog.
func SetGlobalOptions ¶
func SetGlobalOptions(config GlobalConfig)
SetGlobalOptions sets the global options, like level against which all info logs will be compared. If this is greater than or equal to the "V" of the logger, the message will be logged. Concurrent-safe.
func SetVLevelByStringGlobal ¶
func SetVLevelByStringGlobal(level string)
SetVLevelByStringGlobal does the same as SetGlobalOptions but trying to expose verbosity level as more familiar "word-based" log levels
Types ¶
type GlobalConfig ¶
type GlobalConfig struct {
V int `mapstructure:"v"`
}
GlobalConfig config contains global options
Click to show internal directories.
Click to hide internal directories.