InitializeLogging

Function InitializeLogging 

Source
pub(crate) fn InitializeLogging()
Expand description

Initialize logging based on environment variables

Sets up structured logging with support for JSON output (useful for production) and file-based logging (useful for debugging). Environment variables:

  • AIR_LOG_JSON: “true” enables JSON formatted output
  • AIR_LOG_LEVEL: Set logging level (debug, info, warn, error)
  • AIR_LOG_FILE: Path to log file (optional)

§TODO

  • Add log rotation support
  • Implement log file size limits
  • Add structured log correlation IDs
  • Support syslog integration on Unix
  • Add Windows Event Log integration