Documentation ¶
Overview ¶
Package log processes the klog flags, and enforces the maximum log file size and maximum log file number limits.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCurrentLogLevel ¶ added in v0.11.0
func GetCurrentLogLevel() string
GetCurrentLogLevel returns the current log verbosity level.
func InitLogFileLimits ¶
InitLogFileLimits initializes log file maximum size and maximum number limits based on the command line flags.
func SetLogLevel ¶ added in v0.11.0
SetLogLevel sets the log verbosity level. level must be a string representation of a decimal integer.
func StartLogFileNumberMonitor ¶
func StartLogFileNumberMonitor(stopCh <-chan struct{})
StartLogFileNumberMonitor starts monitoring the log files to make sure the number of log files does not exceed the maximum limit, when the log file number limit is configured.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.