package
0.0.0-20250228164547-bad2d1bf3a37
Repository: https://github.com/openshift/library-go.git
Documentation: pkg.go.dev
# Functions
GetLogLevel attempts to guess the current log level that is used by klog.
LogLevelToVerbosity transforms operator log level to a klog numeric verbosity level.
NewClusterOperatorLoggingController sets a klog level for the operator based on the operator config.
NewClusterOperatorLoggingControllerWithLogLevel sets a klog level for the operator based on the operator config, using the given default log level if the operator config does not specify anything.
SetLogLevel is a nasty hack and attempt to manipulate the global flags as klog does not expose a way to dynamically change the loglevel in runtime.
No description provided by the author
# Structs
No description provided by the author