pub fn init_tracing(config: &Config) -> Result<(), ProxyError>Expand description
Initialize the global tracing subscriber.
Set PRAXIS_LOG_FORMAT=json for structured JSON output.
Per-module overrides come from runtime.log_overrides in
the config YAML.
ยงErrors
Returns ProxyError::Config if any log_overrides entry is invalid.
let config = praxis_core::config::Config::load(None, "listeners: []").unwrap();
praxis_core::logging::init_tracing(&config).unwrap();