logging

package
v0.4.0 Latest Latest
Warning

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

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

Documentation

Overview

Package logging configures zerolog for both human-readable terminal output and JSON output, switchable by flag.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Default

func Default(level string, jsonOut bool) zerolog.Logger

Default builds a logger writing to stderr with sensible defaults.

func New

func New(w io.Writer, level string, jsonOut bool) (zerolog.Logger, error)

New returns a zerolog logger writing to w with the given level. If jsonOut is true the writer receives line-delimited JSON; otherwise it receives the human-friendly console format.

Types

This section is empty.

Jump to

Keyboard shortcuts

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