log

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Debug = int(zapcore.DebugLevel) * -1
)

Variables

LoggerSet provides everything required for a logger. nolint: gochecknoglobals

Functions

func NewLogger

func NewLogger(conf Config, level zapcore.LevelEnabler) logr.Logger

func NewZapLevelEnabler added in v1.0.0

func NewZapLevelEnabler(conf Config) (zapcore.LevelEnabler, error)

Types

type Config

type Config struct {
	Level string `mapstructure:"level"`
	Dev   bool   `mapstructure:"dev"`
}

Jump to

Keyboard shortcuts

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