Documentation ¶
Index ¶
Constants ¶
View Source
const KLOG_FLUSH_INTERVAL = 5 * time.Second //
This is the default log flush interval for klog/v2 Ref: k8s.io/klog/v2@v2.40.1
Variables ¶
This section is empty.
Functions ¶
func FinishLogging ¶
func FinishLogging()
func InitLogging ¶
func InitLogging()
This streams logs from the 'log' package to 'klog' and sets flush frequency This initializes logging via klog
func SetDefaultFlushInterval ¶
This needs to be set correctly to the default log flush duration in case it is not equal to KLOG_FLUSH_INTERVAL. This sets the default flush interval for logs
Types ¶
type KlogWriter ¶
type KlogWriter struct{}
Click to show internal directories.
Click to hide internal directories.