json

package
v0.30.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 9 Imported by: 12

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, logsapi.RuntimeControl)

NewJSONLogger creates a new json logr.Logger and its associated control interface. 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 (Factory) Feature added in v0.25.0

func (f Factory) Feature() featuregate.Feature

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL