Documentation
¶
Overview ¶
Package json exists solely to change the date formatting in the JSON log output, which Kubernetes hardcodes to be float-based UNIX timestamps, but which we want as much more useful ISO 8601 date strings. Sadly there is no way to just configure this without replicating the entire JSON logger.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Factory ¶
type Factory struct{}
Factory produces JSON logger instances with ISO8601 timestamps.
func (Factory) Create ¶
func (f Factory) Create(c logsapi.LoggingConfiguration, o logsapi.LoggingOptions) (logr.Logger, logsapi.RuntimeControl)
func (Factory) Feature ¶
func (f Factory) Feature() featuregate.Feature
Click to show internal directories.
Click to hide internal directories.