logging

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// For why the distinction between logr and zap levels, see: https://github.com/operator-framework/operator-sdk/issues/4771
	InfoLevel      = 0
	LogrDebugLevel = -1
	LogrTraceLevel = -2

	ZapDebugLevel = 1
	ZapTraceLevel = 2
)

Variables

This section is empty.

Functions

func GetDevelopmentLogger

func GetDevelopmentLogger(level int, enableStacktrace bool) logr.Logger

GetDevelopmentLogger returns a json logger configured for production. Level must be a negative number.

func GetProductionLogger

func GetProductionLogger(level int, enableStacktrace bool) logr.Logger

GetProductionLogger returns a console logger configured for development. Level must be a negative number.

Types

This section is empty.

Jump to

Keyboard shortcuts

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