logd

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LogLevelEnv = "LOG_LEVEL"
)

Variables

This section is empty.

Functions

func LogBaseLoggerSettings added in v1.2.0

func LogBaseLoggerSettings()

func NewPrettyLogWriter

func NewPrettyLogWriter(options ...func(prettifier *prettyLogWriter)) io.Writer

func WithWriter

func WithWriter(out io.Writer) func(prettifier *prettyLogWriter)

Types

type Logger

type Logger struct {
	logr.Logger
}

func Get

func Get() Logger

Get returns a new, unnamed logd configured with the basics we need for operator logs which can be used as a blueprint for derived loggers int the operator components.

func (*Logger) Debug

func (l *Logger) Debug(message string, keysAndValues ...any)

Debug can be used for verbose output that is supposed to be valuable for troubleshooting

func (Logger) WithName

func (l Logger) WithName(name string) Logger

func (Logger) WithValues

func (l Logger) WithValues(keysAndValues ...any) Logger

Jump to

Keyboard shortcuts

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