logs

package
v1.4.12 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DebugTrue = corev1.EnvVar{
	Name:  "DEBUG",
	Value: "true",
}

DebugTrue - used to enable debug logs in objects

Functions

func GetBoolEnv

func GetBoolEnv(key string) bool

func GetEnv

func GetEnv(key, fallback string) string

func GetLogger

func GetLogger(name string) *zap.SugaredLogger

func IsDebugLevel added in v1.4.11

func IsDebugLevel() bool

IsDebugLevel returns whether the current log level is Debug

Types

type Logger

type Logger struct {
	Logger        logr.Logger
	SugaredLogger *zap.SugaredLogger
}

Jump to

Keyboard shortcuts

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