logs

package
v0.24.12 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: Apache-2.0 Imports: 9 Imported by: 16

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 config.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 config.LoggingConfiguration) (logr.Logger, func())

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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