Versions in this module Expand all Collapse all v1 v1.1.0 Apr 18, 2026 v1.0.0 Apr 18, 2026 Changes in this version + func FromContextOrGlobal(ctx context.Context) logr.Logger + func GetEncoding() string + func GetLogLevel() (zap.AtomicLevel, string, error) + func LogFullCallerPath() bool + func LogLevel() string + func NewLogger(component string) (logr.Logger, error) + func NewLoggerWithOptions(opts ...Option) (logr.Logger, error) + func SetGlobalKlog(logger logr.Logger, kubernetesVerbosityLevel string) error + type Option interface + func WithComponentName(name string) Option + func WithDevelopment(inDevelopment bool) Option + func WithDisableStacktrace(disableStacktrace bool) Option + func WithDiscardMessageMatchingRegex(regex string) Option + func WithGlobalKlog(global bool) Option + func WithGlobalZap(global bool) Option + func WithLogEncoding(logEncoding string) Option + func WithLogFullCallerPath(logFullCallerPath bool) Option + func WithLogLevel(logLevel string) Option + func WithOptionsFromEnv() Option