Allow logs format to be configured as console or JSON

This commit is contained in:
Alejandro Celaya
2025-07-24 09:57:34 +02:00
parent 51dd671174
commit e40b82618a
8 changed files with 28 additions and 11 deletions

View File

@@ -91,6 +91,7 @@ enum EnvVars: string
case CORS_ALLOW_CREDENTIALS = 'CORS_ALLOW_CREDENTIALS';
case CORS_MAX_AGE = 'CORS_MAX_AGE';
case TRUSTED_PROXIES = 'TRUSTED_PROXIES';
case LOGS_FORMAT = 'LOGS_FORMAT';
/** @deprecated Use REDIRECT_EXTRA_PATH */
case REDIRECT_APPEND_EXTRA_PATH = 'REDIRECT_APPEND_EXTRA_PATH';
@@ -196,6 +197,8 @@ enum EnvVars: string
self::CORS_ALLOW_CREDENTIALS => false,
self::CORS_MAX_AGE => 3600,
self::LOGS_FORMAT => 'console',
default => null,
};
}