logs

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2022 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

View Source
const (
	DebugLvl = 1
)

Variables

This section is empty.

Functions

func InitLoggers

func InitLoggers(development bool, fs *flag.FlagSet)

InitLoggers Configure zap backend for controller-runtime logger.

func TimeTrack

func TimeTrack(log logr.Logger, start time.Time, name string)

TimeTrack used to time any function Example:

{
  defer logs.TimeTrack(lg, time.Now(), "fetch all github repositories")
}

Types

This section is empty.

Jump to

Keyboard shortcuts

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