log

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2021 License: Apache-2.0 Imports: 10 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 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