Documentation ¶
Overview ¶
Package klogr implements github.com/go-logr/logr.Logger in terms of k8s.io/klog.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWithOptions ¶ added in v2.5.0
NewWithOptions returns a logr.Logger which serializes as determined by the WithFormat option and writes via klog. The default is FormatKlog.
Types ¶
type Format ¶ added in v2.5.0
type Format string
Format defines how log output is produced.
const ( // FormatSerialize tells klogr to turn key/value pairs into text itself // before invoking klog. FormatSerialize Format = "Serialize" // FormatKlog tells klogr to pass all text messages and key/value pairs // directly to klog. Klog itself then serializes in a human-readable // format and optionally passes on to a structure logging backend. FormatKlog Format = "Klog" )
Click to show internal directories.
Click to hide internal directories.