-
Notifications
You must be signed in to change notification settings - Fork 16.8k
Description
Apache Airflow version
3.0.3
What happened?
Despite all of the documentation on how to configure logging in Airflow 3, none of these configs are used and instead Airflow uses a hard-coded setting.
Specifically
rdjouder 3 weeks ago
Hello,
Looking at the code of airflow.sdk.log.configure_logging I see that conf.get("logging","logging_config_class", ... ) is not called.
Also logging.config.dictConfig is called with hard coded defaults thus completly erasing what configure_logging() from logging_config.py is doing.
I have a custom logging config that is working fine as of airflow 2.10.X and older.
Is my analysis wrong ? Is it a bug ?
ashb 3 weeks ago
It's intentional I'm afraid, and I am in the process of completely overhauling all of Airflow's logging to use structlog and to be able to produce JSON logs in this PR #52651
ashb 3 weeks ago
The logger is configured but Airflow won't use it anymore. The reason is that logs from the task process is sent as JSON to the supervisor process and written to file, and the UI then takes that JSON and renders it for display.
What you think should happen instead?
Airflow log configs should be used.
Anything else?
If I understand correctly, it will be resolved with #52651.
Creating this issue just for tracking 3.x blockers. Please add affected_version_3.0 label.
Code of Conduct
- I agree to follow this project's Code of Conduct