logging

package
v0.0.0-...-c3c6729 Latest Latest
Warning

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

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

Documentation

Overview

Package logging is the logging infrastructure

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromContext

func FromContext(ctx context.Context) logr.Logger

FromContext get the logger from thecontext

func IntoContext

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

IntoContext injects the logger into the passed context, returning a context having the logger embedded. The logger can be recovered with FromContext

func NewIntoContext

func NewIntoContext(ctx context.Context, debug bool) context.Context

NewIntoContext injects a new logger into the passed context, returning a context having the logger embedded. The logger can be recovered with FromContext

Types

This section is empty.

Jump to

Keyboard shortcuts

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