logging

package
v0.3.2-rc.2 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: Apache-2.0 Imports: 3 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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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