logging

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
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

func SetOutput added in v1.2.2

func SetOutput(w io.Writer)

SetOutput writes the console format, without colour, to w rather than to stderr.

Types

This section is empty.

Jump to

Keyboard shortcuts

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