Documentation ¶ Index ¶ func Get(o ...Option) logOptions func NewLogger(logBuilder LogBuilder, rawLogLevel string, verbosity int) (logr.Logger, error) type LogBuilder type LogLevel func ParseLogLevel(value string) LogLevel type Option func WithOutput(w io.Writer) Option func WithZapOptions(zo ...zap.Option) Option Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Get ¶ func Get(o ...Option) logOptions func NewLogger ¶ func NewLogger(logBuilder LogBuilder, rawLogLevel string, verbosity int) (logr.Logger, error) Types ¶ type LogBuilder ¶ type LogBuilder func(logLevel LogLevel, options ...Option) (logr.Logger, error) type LogLevel ¶ type LogLevel int verbosity level const ( // logging is disabled LogOff LogLevel = iota - 1 // logging channel for general information LogInfo // logging channel for detailed information LogDebug // logging channel for verbose information about the current state LogTrace ) func ParseLogLevel ¶ func ParseLogLevel(value string) LogLevel ParseLogLevel convert the string representation into an instance of log level. the conversion is case insensitive. the default result is LOG_OFF type Option ¶ type Option func(*logOptions) Option defines option function func WithOutput ¶ func WithOutput(w io.Writer) Option WithOutput sets output to io.Writer func WithZapOptions ¶ func WithZapOptions(zo ...zap.Option) Option WithZapOptions adds Zap specific options to logger Source Files ¶ View all Source files logger.go option.go Click to show internal directories. Click to hide internal directories.