package
0.33.0-alpha.2
Repository: https://github.com/kubernetes/component-base.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
Package datapol contains functions to determine if objects contain sensitive data to e.g.
Package example shows how a library uses contextual logging.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Package testinit adds logging flags to a Ginkgo or Go test program during initialization, something that the logs package itself no longer does.
# Functions
AddFlags registers this package's flags on arbitrary FlagSets.
AddGoFlags is a variant of AddFlags for traditional Go flag.FlagSet.
FlushLogs flushes logs immediately.
GlogSetter modifies the verbosity threshold for the entire program.
InitLogs initializes logs the way we want for Kubernetes.
NewLogger creates a new log.Logger which sends logs to klog.Info.
SkipLoggingConfigurationFlags must be used as option for AddFlags when the program also uses a LoggingConfiguration struct for configuring logging.
# Variables
NewOptions is an alias for NewLoggingConfiguration.
# Structs
KlogWriter serves as a bridge between the standard log package and the glog package.