relaylogger

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetRunTimeLogLevel

func SetRunTimeLogLevel(level int)

SetRunTimeLogLevel set a run time log level

Types

type RelayLog

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

RelayLog is a sample logr.Logger that logs to stderr. It's terribly inefficient, and is *only* a basic example.

func NewLogger

func NewLogger(level int) *RelayLog

NewLogger create new logger

func (*RelayLog) Critical

func (l *RelayLog) Critical(msg string, kvs ...interface{})

Critical log critical

func (*RelayLog) Debug

func (l *RelayLog) Debug(msg string, kvs ...interface{})

Debug log debug level

func (*RelayLog) Enabled

func (_ *RelayLog) Enabled() bool

Enabled log enabled

func (*RelayLog) Error

func (l *RelayLog) Error(err error, msg string, kvs ...interface{})

Error log error level

func (*RelayLog) Info

func (l *RelayLog) Info(msg string, kvs ...interface{})

Info log info level

func (*RelayLog) V

func (l *RelayLog) V(_ int) *RelayLog

V ..

func (*RelayLog) Warn

func (l *RelayLog) Warn(msg string, kvs ...interface{})

Warn log warning level

func (*RelayLog) WithName

func (l *RelayLog) WithName(name string) *RelayLog

WithName set log name

func (*RelayLog) WithValues

func (l *RelayLog) WithValues(kvs ...interface{}) *RelayLog

WithValues log key values

Jump to

Keyboard shortcuts

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