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 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.