logging

package
v0.32.4 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureGlobalLoggers

func ConfigureGlobalLoggers(ctx context.Context)

ConfigureGlobalLoggers sets up any package-wide loggers like "log" or "klog" that are utilized by other packages to use the configured *zap.SugaredLogger from the context

func DefaultZapConfig

func DefaultZapConfig(component string) zap.Config

func IgnoreDebugEvents

func IgnoreDebugEvents(logger logr.Logger) logr.Logger

IgnoreDebugEvents wraps the logger with one that ignores any debug logs coming from a logger named "events". This prevents every event we write from creating a debug log which spams the log file during scale-ups due to recording pod scheduling decisions as events for visibility.

func NewLogger

func NewLogger(ctx context.Context, component string, kubernetesInterface kubernetes.Interface) *zap.SugaredLogger

NewLogger returns a configured *zap.SugaredLogger

func WithCommit

func WithCommit(logger *zap.SugaredLogger) *zap.SugaredLogger

Types

This section is empty.

Jump to

Keyboard shortcuts

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