log

package
v0.9.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFlags

func AddFlags(fs *pflag.FlagSet)

func GetCurrentLogLevel added in v0.9.0

func GetCurrentLogLevel(fs *pflag.FlagSet) string

GetCurrentLogLevel returns the current log verbosity level.

func InitLogFileLimits

func InitLogFileLimits(fs *pflag.FlagSet)

InitLogFileLimits initializes log file maximum size and maximum number limits based on the command line flags.

func InitLogLevel added in v0.9.0

func InitLogLevel(fs *pflag.FlagSet) error

InitLogLevel sets the log verbosity level when init time

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL