ctxlog

package
v0.7.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EdgeRequestIDFrom added in v0.7.0

func EdgeRequestIDFrom(ctx context.Context) string

func LoggerFrom

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

LoggerFrom returns the logger stored in ctx, or slog.Default() if none.

func RequestIDFrom added in v0.6.0

func RequestIDFrom(ctx context.Context) string

func WithEdgeRequestID added in v0.7.0

func WithEdgeRequestID(ctx context.Context, requestID string) context.Context

func WithLogger

func WithLogger(ctx context.Context, l *slog.Logger) context.Context

WithLogger returns a copy of ctx carrying l.

func WithRequestID added in v0.6.0

func WithRequestID(ctx context.Context, requestID string) context.Context

Types

This section is empty.

Jump to

Keyboard shortcuts

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