logger

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromContext

func FromContext(ctx context.Context) logr.Logger

FromContext returns a logger from the context.

func NewLogger

func NewLogger() logr.Logger

NewLogger Creates a new logr.Logger

func WithLogger

func WithLogger(ctx context.Context, logger logr.Logger) context.Context

WithLogger takes in a context and returns a context with key as loggerKey{} and value as loggger(of type logr.Logger) passed

Types

This section is empty.

Jump to

Keyboard shortcuts

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