package
0.38.0
Repository: https://github.com/weaveworks/weave-gitops.git
Documentation: pkg.go.dev

# Functions

New builds a new Logger Config.
New returns a new Logger instance.
NewFromConfig creates a new logr Logger from a zap Config.
WithDevelopment sets some Development mode defaults.
WithDisableStackTrace disables the stack traces printed out with Error and Warn levels.
WithEncoding sets the encoding for the logger (eg "console" or "json".
WithHumanTimeCode can be used to set more human readable time on Production logs.
WithLogLevel will set the log level on the Logger Config.
WithMode sets up some default options for Dev and Prod envs.
WithOutAndErrPaths appends locations for stdout and stderr.
WithProduction sets some Production mode defaults.
WithSampling sets sampling config.

# Constants

No description provided by the author
LogLevelDebug = -1.
LogLevelError = 2.
LogLevelInfo = 0.
LogLevelWarn = 1.

# Type aliases

LogOption is an option which can be applied to the Logger Config.