logging

package
v2.0.0-...-a7294fb Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Status logs are logs that should ALWAYS be shown. In the context of a controller,
	// Status logs should not be happening for every reconcile loop. Examples of good Status logs
	// are state changes or major problems. These probably line up very nicely with interesting
	// customer facing "events" as well.
	Status = 0

	// Info logs are logs that are probably useful but may be slightly more verbose.
	// In the context of a controller, an Info log probably shouldn't be emitted every time through
	// the reconcile loop, at least in the happy path.
	// Examples of good Info logs include intermittent errors which we expect to be able to retry through
	// and object updates (think: "set ownerReference" or similar things which are not critical state changes
	// but are still interesting updates that aren't super verbose).
	Info = 1

	// Verbose logs are logs that are quite verbose. In the context of a controller
	// they likely log on each reconcile loop. Examples of good Verbose logs include
	// "waiting for deployment..." or "waiting for deletion to complete..."
	Verbose = 2

	// Debug logs are logs that are extremely verbose and log each reconcile loop (or multiple times in a single
	// reconcile loop). Examples include ARM request and response payloads, or request and response payloads
	// from APIServer.
	Debug = 3
)

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