kaxil commented on code in PR #63365: URL: https://github.com/apache/airflow/pull/63365#discussion_r2926105395
########## airflow-core/newsfragments/63365.significant.rst: ########## @@ -0,0 +1,9 @@ +We can now produce 100% JSON logs from Airflow components + +The new ``json_logs`` option under the ``logging`` section of this makes +Airflow product "all" its output in newline-delimited JSON, a.k.a. Structured +Logs, instead of human readable/pretty printed logs. + +Not all components will be 100% json output with this mode enabled (of +particular note is ``airflow celery worker`` doesn't support this yet) but +anything producing non-JSON output with this enabled will be treated as a bug. Review Comment: ```suggestion Structured JSON logging for all API server output The new ``json_logs`` option under the ``[logging]`` section makes Airflow produce all its output as newline-delimited JSON (structured logs) instead of human-readable formatted logs. This covers the API server (gunicorn/uvicorn), including access logs, warnings, and unhandled exceptions. Not all components support this yet — notably ``airflow celery worker`` but any non-JSON output when ``json_logs`` is enabled will be treated as a bug. ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
