Documentation
¶
Index ¶
Constants ¶
View Source
const (
// For why the distinction between logr and zap levels, see: https://github.com/operator-framework/operator-sdk/issues/4771
InfoLevel = 0
LogrDebugLevel = -1
LogrTraceLevel = -2
ZapDebugLevel = 1
ZapTraceLevel = 2
)
Variables ¶
This section is empty.
Functions ¶
func GetDevelopmentLogger ¶
func GetDevelopmentLogger(level int, enableStacktrace bool) logr.Logger
GetDevelopmentLogger returns a json logger configured for production. Level must be a negative number.
func GetProductionLogger ¶
func GetProductionLogger(level int, enableStacktrace bool) logr.Logger
GetProductionLogger returns a console logger configured for development. Level must be a negative number.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.