logging

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package logging configures the application's structured logger.

All logs go to stderr: stdout is reserved for command output and for the MCP stdio transport, which would break if logs were interleaved with it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseLevel

func ParseLevel(name string) (slog.Level, error)

ParseLevel converts a level name to an slog.Level. "off"/"silent"/"none" disable logging entirely.

func Setup

func Setup(level string) error

Setup installs a stderr text logger at the given level as the slog default.

func Transport

func Transport(base http.RoundTripper) http.RoundTripper

Transport wraps an http.RoundTripper to log every request/response at debug level (and failures at error level). Pass nil to wrap http.DefaultTransport.

Types

This section is empty.

Jump to

Keyboard shortcuts

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