log

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Log = NilLog

Log is the central logger for this program.

NilLog is a no-op logger.

Functions

func CreateOperatorAwareLogger added in v0.0.4

func CreateOperatorAwareLogger(name string) logr.Logger

CreateOperatorAwareLogger will set logging format to JSON when ran as operator or plain text when used as CLI.

func CreateOperatorAwareLoggerWithLevel added in v0.0.9

func CreateOperatorAwareLoggerWithLevel(name string, level zapcore.Level) logr.Logger

CreateOperatorAwareLoggerWithLevel will set logging format to JSON when ran as operator or plain text when used as CLI.

func New added in v0.5.0

func New(l logr.Logger) logr.Logger

func SetLogger added in v0.0.4

func SetLogger(logger logr.Logger)

SetLogger sets the central logger to use.

Types

This section is empty.

Jump to

Keyboard shortcuts

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