logging

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package logging configures a zerolog logger. By default it emits colored, human-readable console output (readable straight out of `docker logs`); set PP_LOG_JSON=true for structured JSON. Colors honor the NO_COLOR convention.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

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

New returns a configured logger. level is one of trace/debug/info/warn/error. jsonOut forces structured JSON instead of the colored console writer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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