Documentation
¶
Index ¶
Constants ¶
const K8sLogFormat = "kubesolo"
K8sLogFormat is the Kubernetes log format that writes through the kubesolo logger. Every in-process Kubernetes component must be started with it: the first component to apply its logging configuration installs it, and the others are only allowed to apply the same configuration again.
Variables ¶
This section is empty.
Functions ¶
func ConfigureK8sDefaultLogging ¶
func ConfigureK8sDefaultLogging()
ConfigureK8sDefaultLogging configures the default logging for kubernetes it sets the reapply handling to ignore unchanged, and routes klog through the kubesolo logger so that output written before the first Kubernetes component applies its logging configuration is formatted the same way
func ConfigureLogger ¶
func ConfigureLogger()
ConfigureLogger configures the default logger for kubesolo it is configured to use the zerolog library it sets the error stack field name, error stack marshaler, time field format, and the output
func ConfigureLogrusLogging ¶ added in v1.2.2
func ConfigureLogrusLogging()
ConfigureLogrusLogging routes the global logrus logger, which containerd and kine log through, to the kubesolo logger.
containerd replaces the logrus formatter when it starts, so the formatter is left alone: the hook writes each entry and the formatted output is discarded.
func SetLoggingLevel ¶
func SetLoggingLevel(level string)
SetLoggingLevel sets the logging level for the zerolog library it switches on the logging level
func SetLoggingMode ¶
func SetLoggingMode(mode string)
SetLoggingMode sets the logging mode for the zerolog library it switches on the logging mode
Types ¶
This section is empty.