logr

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Default = CreateFor(log.GetRootLogger())

Default is the default instance which created with the slf4g global logger.

Functions

This section is empty.

Types

type Bridge

type Bridge struct {
	Target      log.Logger
	VL          int
	CallerDepth int
}

func CreateFor

func CreateFor(logger log.Logger) *Bridge

func (*Bridge) Enabled

func (instance *Bridge) Enabled(vl int) bool

func (*Bridge) Error

func (instance *Bridge) Error(err error, msg string, keysAndValues ...interface{})

func (*Bridge) Info

func (instance *Bridge) Info(lvl int, msg string, keysAndValues ...interface{})

func (*Bridge) Init added in v1.0.0

func (instance *Bridge) Init(info logr.RuntimeInfo)

func (*Bridge) V

func (instance *Bridge) V(vl int) logr.LogSink

func (*Bridge) WithName

func (instance *Bridge) WithName(name string) logr.LogSink

func (*Bridge) WithValues

func (instance *Bridge) WithValues(keysAndValues ...interface{}) logr.LogSink

Jump to

Keyboard shortcuts

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