logs

package
v0.0.0-...-5f1e80b Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2020 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

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