log

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2026 License: Apache-2.0 Imports: 4 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromContext

func FromContext(ctx context.Context) zerolog.Logger

FromContext retrieves the logger from a context. If none is found, returns a Nop logger.

func IntoContext

func IntoContext(ctx context.Context, l zerolog.Logger) context.Context

IntoContext stores the logger in a context.

func New

func New(level zerolog.Level) zerolog.Logger

New creates a new zerolog.Logger with JSON output (production style).

Types

This section is empty.

Jump to

Keyboard shortcuts

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