log

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2022 License: Apache-2.0 Imports: 10 Imported by: 1

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 AddFlags

func AddFlags(fs *pflag.FlagSet)

func FlushLogs added in v1.7.0

func FlushLogs()

func GetCurrentLogLevel

func GetCurrentLogLevel() string

GetCurrentLogLevel returns the current log verbosity level.

func InitLogs added in v1.7.0

func InitLogs(fs *pflag.FlagSet, opts ...func(options *Options))

func SetLogLevel

func SetLogLevel(level string) error

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.

func WithoutFlushDaemon added in v1.7.0

func WithoutFlushDaemon(options *Options)

Types

type Options added in v1.7.0

type Options struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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