logger

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PanicLevel represents logrus panic log level
	PanicLevel = int(logrus.PanicLevel) - 4
	// FatalLevel represents logrus fatal log level
	FatalLevel = int(logrus.FatalLevel) - 4
	// ErrorLevel represents logrus error log level
	ErrorLevel = int(logrus.ErrorLevel) - 4
	// WarnLevel represents logrus warning log level
	WarnLevel = int(logrus.WarnLevel) - 4
	// InfoLevel represents logrus info log level
	InfoLevel = int(logrus.InfoLevel) - 4
	// DebugLevel represents logrus debug log level
	DebugLevel = int(logrus.DebugLevel) - 4
	// TraceLevel represents logrus trace log level
	TraceLevel = int(logrus.TraceLevel) - 4
)
View Source
const (
	// LoggerContextKey defines key which we use to store log in the context
	LoggerContextKey key = iota
)

Variables

This section is empty.

Functions

func FromContext

func FromContext(ctx context.Context) logr.Logger

FromContext serves to pass the logger instance to the context

func ParseLevel

func ParseLevel(level string) (logrus.Level, error)

ParseLevel returns correct logrus Level from given string name

Types

This section is empty.

Jump to

Keyboard shortcuts

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