logging

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2025 License: Apache-2.0 Imports: 0 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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