logger

package
v0.0.0-...-db1ba95 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: ISC Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromContext

func FromContext(ctx context.Context) *log.Logger

FromContext returns the Logger instance from the ctx, or log.Default() if none.

func Silent

func Silent(ctx context.Context) context.Context

Silent returns a context.Context with a no-op logger.

func WithLogger

func WithLogger(ctx context.Context, logger *log.Logger) context.Context

WithLogger injects an additional logger into ctx.

Types

This section is empty.

Jump to

Keyboard shortcuts

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