When stdout is connected to a TTY, use tracing_subscriber's pretty format with colors instead of single-line JSON. Non-TTY (container logs, pipes) continue to output JSON for log aggregation. Override auto-detection via APP_LOG_FORMAT=json|pretty. Also adds APP_LOG_PRETTY=true to use serde_json::to_string_pretty for human-readable JSON output (useful for development/debugging). |
||
|---|---|---|
| .. | ||
| lib.rs | ||
| metrics_middleware.rs | ||
| msg_json_fmt.rs | ||
| otlp.rs | ||
| prometheus_exporter.rs | ||
| slog_json.rs | ||
| tracing_fmt.rs | ||
| tracing_init.rs | ||
| tracing_middleware.rs | ||