logger

package
v0.0.0-...-4f8df11 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

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

func SetDefaultFlushInterval(freq time.Duration)

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{}

func (KlogWriter) Write

func (k KlogWriter) Write(data []byte) (n int, err error)

Jump to

Keyboard shortcuts

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