Help us shape the future of Go! Take the 2026 Go Developer Survey

logging

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package logging provides a stderr-only logger.

MCP over stdio uses stdout exclusively for JSON-RPC frames, so nothing in the process may write to stdout. Log calls go through this package instead of the standard log package or fmt.Print*.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() *slog.Logger

New returns a structured slog logger that writes text records exclusively to stderr, using the default handler options.

Types

This section is empty.

Jump to

Keyboard shortcuts

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