logger

package
v0.62.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromContext

func FromContext(ctx context.Context, fallback logrus.FieldLogger) logrus.FieldLogger

FromContext retrieves the logger from context. If not present, returns the fallback logger.

func WithLogger

func WithLogger(ctx context.Context, logger logrus.FieldLogger) context.Context

WithLogger returns a new context with the logger attached.

Types

This section is empty.

Jump to

Keyboard shortcuts

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