log

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

Logger wraps the benthos logger for use by controller-runtime

func New

func New(l benthoslog.Modular) *Logger

New returns a new context logger

func (*Logger) Enabled

func (l *Logger) Enabled() bool

Enabled implementation

func (*Logger) Error added in v0.2.0

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

Error err error, implementation

func (*Logger) Info

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

Info implementation

func (*Logger) V added in v0.2.0

func (l *Logger) V(level int) logr.InfoLogger

V returns a level scoped logger

func (*Logger) WithName added in v0.2.0

func (l *Logger) WithName(name string) logr.Logger

WithName returns a level scoped logger

func (*Logger) WithValues added in v0.2.0

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

WithValues returns a level scoped logger

Jump to

Keyboard shortcuts

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