package
0.33.0-alpha.2
Repository: https://github.com/kubernetes/component-base.git
Documentation: pkg.go.dev
# Functions
AddFeatureGates adds all feature gates used by this package.
AddFlags adds command line flags for the configuration.
AddGoFlags is a variant of AddFlags for a standard FlagSet.
NewLoggingConfiguration returns a struct holding the default logging configuration.
RegisterLogFormat registers support for a new logging format.
ResetForTest restores the default settings.
SetRecommendedLoggingConfiguration sets the default logging configuration for fields that are unset.
Validate can be used to check for invalid settings without applying them.
ValidateAndApply combines validation and application of the logging configuration.
ValidateAndApplyAsField is a variant of ValidateAndApply that should be used when the LoggingConfiguration is embedded in some larger configuration structure.
ValidateAndApplyWithOptions is a variant of ValidateAndApply which accepts additional options beyond those that can be configured through the API.
VerbosityLevelPflag implements the pflag.Value interface for a verbosity level value.
VModuleConfigurationPflag implements the pflag.Value interface for a VModuleConfiguration.
# Constants
owner: @pohly kep: https://kep.k8s.io/3077 alpha: v1.24 beta: v1.30
Enables looking up a logger from a context.Context instead of using the global fallback logger and manipulating the logger that is used by a call chain.
DefaultLogFormat is the traditional klog output format.
JSONLogFormat emits each log message as a JSON struct.
LogFlushFreqDefault is the default for the corresponding command line parameter.
LogFlushFreqFlagName is the name of the command line parameter.
Allow fine-tuning of experimental, alpha-quality logging options.
Allow fine-tuning of experimental, beta-quality logging options.
Stable logging options.
ReapplyHandlingError is the default: calling ValidateAndApply or ValidateAndApplyWithOptions again returns an error.
ReapplyHandlingIgnoreUnchanged silently ignores any additional calls of ValidateAndApply or ValidateAndApplyWithOptions if the configuration is unchanged, otherwise they return an error.
# Variables
Applying configurations multiple times is not safe unless it's guaranteed that there are no goroutines which might call logging functions.
# Structs
FormatOptions contains options for the different logging formats.
JSONOptions contains options for logging format "json".
LoggingConfiguration contains logging options.
LoggingOptions can be used with ValidateAndApplyWithOptions to override certain global defaults.
OutputRoutingOptions contains options that are supported by both "text" and "json".
RuntimeControl provides operations that aren't available through the normal Logger or LogSink API.
TextOptions contains options for logging format "text".
TimeOrMetaDuration is present only for backwards compatibility for the flushFrequency field, and new fields should use metav1.Duration.
VModuleItem defines verbosity for one or more files which match a certain glob pattern.
# Interfaces
LogFormatFactory provides support for a certain additional, non-default log format.
# Type aliases
No description provided by the author
VerbosityLevel represents a klog or logr verbosity threshold.
VModuleConfiguration is a collection of individual file names or patterns and the corresponding verbosity threshold.