sloglog

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: May 12, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package sloglog adapts a *log/slog.Logger to the mcpx.Logger interface. Pass the result of sloglog.New into mcpx.WithLogger to route every event the multiplexer produces through your existing slog setup.

The package is intentionally a thin shim: no defaults, no global state, no init() side effects. slog is in the standard library; importing this adapter pulls no third-party dependencies.

Package sloglog adapts a *slog.Logger to mcpx.Logger.

Usage:

mx, err := mcpx.New(ctx, cfg, mcpx.WithLogger(sloglog.New(slog.Default())))

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(l *slog.Logger) mcpx.Logger

New wraps a slog.Logger as an mcpx.Logger.

Types

This section is empty.

Jump to

Keyboard shortcuts

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