logging

package
v2.4.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Status logs are always shown. Status logs should be reserved for operational
	// logs about the service itself, e.g.:
	// - startup and shutdown messages
	// - runtime conditions which may indicate something about the state of the service,
	//    e.g. inability to reach kube-apiserver.
	Status = 1
	// Info is the default log level for most deployments. It should log the principal actions
	// of the service, i.e. resource creation and deletion, and 'reconcile complete'
	// (i.e. Progressing=False) messages for success and failure. It should not include actions
	// which happen on every reconcile.
	// Example: "OpenStack resource created"
	Info = 2
	// Verbose logs provide additional context for an administrator trying to understand why an action
	// be occurring or not occurring. It should produce logs on every reconcile attempt.
	// Example: "web-download is not supported because..."
	Verbose = 3
	// Debug logs are very verbose. They should include things that should
	// help with debugging/development.
	// Example: "Got resource"
	Debug = 4
)

These levels are defined to categorize what a given log level means. Logs with levels 1-3 are for operators. Log level 4 is for developers.

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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