internal

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BaseCallDepth int = 2

	// ErrorLevel limits logs to ERROR messages only
	ErrorLevel int = -1
	// MaxInfoLevel allows ERROR, INFO, DEBUG and TRACE messages
	MaxInfoLevel int = 2
	// MedInfoLevel allows ERROR, INFO, and DEBUG messages
	MedInfoLevel int = 1
	// MinInfoLevel limits logs to ERROR and INFO messages
	MinInfoLevel int = 0
)

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(options Options) logr.Logger

NewLogger returns a new logr.Logger instance

Types

type Options

type Options struct {
	// Structured enables structured logging
	Structured bool
	// Colors enables colors for unstructured logging only
	Colors bool
	// Writers defines which transports the logger should write to
	Writers []io.Writer
	// Level defines the logging verbosity; defaults to MinInfoLevel
	Level int
}

Options allows the user to set various options for the logr.Logger implementation

Jump to

Keyboard shortcuts

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