logger

package
v2.19.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogWithLevel

func LogWithLevel(logger logr.Logger, level string) logr.Logger

in each controller, to use different log level.

func NewLogger added in v2.19.0

func NewLogger(mode string) logr.Logger

in DSC component, to use different mode for logging, e.g. development, production when not set mode it falls to "default" which is used by startup main.go.

func NewLoggerWithOptions added in v2.19.0

func NewLoggerWithOptions(mode string, override *zap.Options) logr.Logger

func NewNamedLogger added in v2.19.0

func NewNamedLogger(log logr.Logger, name string, mode string) logr.Logger

NewNamedLogger creates a new logger for a component. If the mode is set (so can be different from the default one), it will create a new logger with the specified mode's options.

Types

This section is empty.

Jump to

Keyboard shortcuts

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