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=jsonStructs§
- Command
Trace - One root span for a foreground CLI command.
- Logging
Config - Logging
Guard
Enums§
Functions§
- init_
logging - Initialize the global tracing subscriber.
- init_
logging_ default - is_
enabled - record_
phase_ span - Record an already-measured profile phase as a child of the command span.
- trace_
export_ enabled - Whether this process has an endpoint-backed trace provider.