logr

package
v0.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogrusLogr

type LogrusLogr struct {
	*logrus.Logger
	// contains filtered or unexported fields
}

func Logrus

func Logrus() *LogrusLogr

Rewrite logr logs to Logrus logger

func (*LogrusLogr) Enabled

func (log *LogrusLogr) Enabled() bool

func (*LogrusLogr) Error

func (log *LogrusLogr) Error(err error, msg string, keysAndValues ...interface{})

func (*LogrusLogr) Info

func (log *LogrusLogr) Info(msg string, keysAndValues ...interface{})

func (*LogrusLogr) V

func (log *LogrusLogr) V(level int) logr.Logger

func (*LogrusLogr) WithName

func (log *LogrusLogr) WithName(name string) logr.Logger

WithName adds a new element to the logger's name. Successive calls with WithName continue to append suffixes to the logger's name. It's strongly recommended that name segments contain only letters, digits, and hyphens (see the package documentation for more information).

func (*LogrusLogr) WithValues

func (log *LogrusLogr) WithValues(keysAndValues ...interface{}) logr.Logger

WithValues adds some key-value pairs of context to a logger. See Info for documentation on how key/value pairs work.

Jump to

Keyboard shortcuts

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