subhash-0000 commented on code in PR #60818:
URL: https://github.com/apache/airflow/pull/60818#discussion_r2831783738
##########
airflow-core/docs/administration-and-deployment/logging-monitoring/advanced-logging-configuration.rst:
##########
@@ -117,25 +119,11 @@ Example of custom logging for the
``SQLExecuteQueryOperator`` and the ``HttpHook
from copy import deepcopy
from pydantic.utils import deep_update
- from airflow.config_templates.airflow_local_settings import
DEFAULT_LOGGING_CONFIG
- LOGGING_CONFIG = deep_update(
- deepcopy(DEFAULT_LOGGING_CONFIG),
- {
- "loggers": {
-
"airflow.task.operators.airflow.providers.common.sql.operators.sql.SQLExecuteQueryOperator":
{
- "handlers": ["task"],
- "level": "DEBUG",
- "propagate": True,
- },
-
"airflow.task.hooks.airflow.providers.http.hooks.http.HttpHook": {
- "handlers": ["task"],
- "level": "WARNING",
- "propagate": False,
- },
- }
- },
- )
+ # Airflow 3.x and later uses structlog for logging configuration.
+ # The legacy DEFAULT_LOGGING_CONFIG dict is no longer respected.
+ # See the migration note below for details.
+ # Example: To customize logging, use structlog configuration as
described in the Airflow documentation.
Review Comment:
Covered by the same revert
--
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]