logger

package
v0.11.7 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2021 License: MIT Imports: 1 Imported by: 59 modules, 258 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debugw added in v0.8.6

func Debugw(msg string, keysAndValues ...interface{})

func Errorw added in v0.8.6

func Errorw(msg string, err error, keysAndValues ...interface{})

func GetLogger

func GetLogger() logr.Logger

Note: SetLogger already adds extra depth 1

func Infow added in v0.8.6

func Infow(msg string, keysAndValues ...interface{})

func SetLogger

func SetLogger(l logr.Logger, name string)

Note: only pass in logr.Logger with default depth

func Warnw added in v0.8.6

func Warnw(msg string, err error, keysAndValues ...interface{})

Types

type Logger added in v0.10.0

type Logger logr.Logger

func (Logger) Debugw added in v0.10.0

func (l Logger) Debugw(msg string, keysAndValues ...interface{})

func (Logger) Errorw added in v0.10.0

func (l Logger) Errorw(msg string, err error, keysAndValues ...interface{})

func (Logger) Infow added in v0.10.0

func (l Logger) Infow(msg string, keysAndValues ...interface{})

func (Logger) Warnw added in v0.10.0

func (l Logger) Warnw(msg string, err error, keysAndValues ...interface{})

Jump to

Keyboard shortcuts

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