obslog

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 31, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package obslog wraps log/slog with a redacting JSON handler. Default-on redaction strips Authorization-style headers, prompt/message content, and the query portion of URL-shaped values, regardless of nesting depth.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(w io.Writer, level slog.Level, redact bool) *slog.Logger

New returns a slog.Logger writing JSON to w. When redact is true, all attrs are walked recursively and sensitive keys / URL query strings are scrubbed before emission. Set redact=false ONLY for local debugging.

Types

This section is empty.

Jump to

Keyboard shortcuts

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