logging

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextWithLogger

func ContextWithLogger(ctx context.Context, logger *log.Entry) context.Context

ContextWithLogger returns a context.Context that has been augmented with the provided log.Entry.

func LoggerFromContext

func LoggerFromContext(ctx context.Context) *log.Entry

LoggerFromContext extracts a *log.Entry from the provided context.Context and returns it. If no *log.Entry is found, a global, error-level *log.Entry is returned.

func SetKLogLevel added in v0.4.0

func SetKLogLevel(klogLevel int)

SetKLogLevel set the klog level for the k8s go-client

Types

This section is empty.

Jump to

Keyboard shortcuts

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