log

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NullLogger = log.NullLogger{}

NullLogger is a logr.Logger that does nothing.

Functions

func MaybeSetVerbosity

func MaybeSetVerbosity(log Logger, verbosity Level)

MaybeSetVerbosity will call log.SetVerbosity(verbosity) if logger has a SetVerbosity method.

func MaybeSetWriter

func MaybeSetWriter(log Logger, w io.Writer)

MaybeSetWriter will call log.SetWriter(w) if logger has a SetWriter method.

Types

type Level

type Level int32

Level is a verbosity logging level for Info logs. See also https://github.com/kubernetes/klog

type Logger

type Logger = logr.Logger

Logger describes the interface that must be implemented by all loggers.

Jump to

Keyboard shortcuts

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