logging

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package logging configures the process-wide zerolog logger.

Diagnostics always go to stderr so they never corrupt machine-readable output on stdout (see internal/output). When a file sink is configured it always receives raw JSON, regardless of the stderr format.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(level string, jsonFormat, noColor bool, file string) (*zerolog.Logger, error)

New builds the logger. jsonFormat true => structured JSON on stderr; false => a colored console writer. level is debug|info|warn|error (defaults to info). A non-empty file adds a second, always-JSON sink.

func Nop

func Nop() *zerolog.Logger

Nop returns a disabled logger, handy for tests.

Types

This section is empty.

Jump to

Keyboard shortcuts

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