common

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// LogInfo level is for most info logs, this is the default
	// One should just call Info directly.
	LogInfo klog.Level = iota

	// LogDebug is for more verbose logs
	LogDebug

	// LogDebugWithContent is recommended if one wants to log with the content of the object,
	// ie. http body, json/yaml file content
	LogDebugWithContent

	// LogTrace is the most verbose log level, don't add anything after this
	LogTrace = 100
)

klog has multiple levels, you can set the log levels by klog.V() Basic examples:

klog.V(1).Info("Prepare to repel boarders")

klog.V(2).ErrorS(err, "Initialization failed")

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