Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddNopSync ¶ added in v0.24.0
func AddNopSync(writer io.Writer) zapcore.WriteSyncer
AddNoSync adds a NOP Sync implementation.
func NewJSONLogger ¶
func NewJSONLogger(v logsapi.VerbosityLevel, infoStream, errorStream zapcore.WriteSyncer, encoderConfig *zapcore.EncoderConfig) (logr.Logger, func())
NewJSONLogger creates a new json logr.Logger and its associated flush function. The separate error stream is optional and may be nil. The encoder config is also optional.
Types ¶
type Factory ¶ added in v0.23.0
type Factory struct{}
Factory produces JSON logger instances.
func (Factory) Create ¶ added in v0.23.0
func (f Factory) Create(c logsapi.LoggingConfiguration) (logr.Logger, func())
func (Factory) Feature ¶ added in v0.25.0
func (f Factory) Feature() featuregate.Feature
Click to show internal directories.
Click to hide internal directories.