logging

package
v0.0.0-...-4399603 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Logger

func Logger(ctx ...context.Context) *slog.Logger

Logger returns a logger.

func With

func With(ctx context.Context, values ...any) context.Context

With returns a new context with the given values added. The values are added to the logger automatically.

func WithLoggerEnabled

func WithLoggerEnabled(ctx context.Context, enabled bool) context.Context

WithLoggerEnabled returns a new context with the logger explicitly enabled or disabled. If the key is not set, the logger will be enabled by default.

Types

This section is empty.

Jump to

Keyboard shortcuts

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