slogctx

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package slogctx manages a slog.Logger in a context.Context.

This is just a proof of concept. It's not production ready.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromContext

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

func New

func New(l *slog.Logger) context.Context

func NewWithContext

func NewWithContext(ctx context.Context, l *slog.Logger) 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