Skip to main content

Module logging

Module logging 

Source
Expand description

Structured logging initialization and configuration.

This module provides centralized logging setup using the tracing ecosystem. It supports both human-readable and JSON output formats, configurable via environment variables.

§Configuration

Logging is controlled via the RUST_LOG environment variable:

# Default logging (info level)
RUST_LOG=info

# Debug level for heddle only
RUST_LOG=heddle=debug

# Trace everything
RUST_LOG=trace

# JSON output for machine parsing
RUST_LOG=info HEDDLE_LOG_FORMAT=json

Structs§

LoggingConfig
LoggingGuard

Enums§

LogFormat

Functions§

init_logging
Initialize the global tracing subscriber.
init_logging_default
is_enabled