log

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(level LogLevel) logr.Logger

func NewLoggerTo

func NewLoggerTo(destWriter io.Writer, level LogLevel) logr.Logger

func NewLoggerWithRotation

func NewLoggerWithRotation(level LogLevel, outputPath string, maxSize int, maxBackups int, maxAge int) logr.Logger

Types

type LogLevel

type LogLevel int
const (
	OffLevel LogLevel = iota
	InfoLevel
	DebugLevel
)

func ParseLogLevel

func ParseLogLevel(text string) (LogLevel, error)

func (LogLevel) String

func (l LogLevel) String() string

Jump to

Keyboard shortcuts

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