logging

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package logging builds the structured logger used across gitdr. Logs are written to stderr so that stdout stays reserved for machine-readable command output (--output json). JSON is the default format.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Default

func Default(level, format string) *slog.Logger

Default returns a logger writing to stderr with the given level/format.

func New

func New(level, format string, w io.Writer) *slog.Logger

New returns a structured logger writing to w.

Types

This section is empty.

Jump to

Keyboard shortcuts

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