Documentation
¶
Overview ¶
Package logging configures log/slog, the standard log package, and controller-runtime's logr bridge from one set of command-line flags.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct {
// FullObjects logs whole Kubernetes objects instead of their identity.
FullObjects bool
// Development defaults to text output, debug logging, and stack traces at warn.
Development bool
// JSONLog forces JSON output with numeric epoch timestamps.
JSONLog bool
Format string
Level string
StacktraceLevel string
// TimeEncoding defaults to rfc3339 when empty.
TimeEncoding string
}
Options holds the logging flag values. Values set before BindFlags become the flag defaults, so each binary can choose its own.