logger

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ImportantLevel       = int(zapcore.ErrorLevel)
	InfoLevel            = int(zapcore.InfoLevel)
	DebugLevel           = int(zapcore.DebugLevel)
	PerformanceTestLevel = -128
)

Variables

This section is empty.

Functions

func CreateDebugLogger

func CreateDebugLogger() logr.Logger

func CreateLogger

func CreateLogger(isDebug bool) logr.Logger

CreateLogger creates a new logger instance isDebug: if enabled, the logger prints debug logs, otherwise it prints info level and above

func GetObservedLogs

func GetObservedLogs() *observer.ObservedLogs

GetObservedLogs returns ObservedLogs object, can be used in unit tests to see if something got logged

Types

This section is empty.

Jump to

Keyboard shortcuts

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