hsnprsd commented on issue #16001:
URL: https://github.com/apache/airflow/issues/16001#issuecomment-846535185


   I came up with a solution today.
   I changed the default logging config class like this:
   
   ```
   import sys
   from copy import deepcopy
   
   from airflow.config_templates.airflow_local_settings import 
DEFAULT_LOGGING_CONFIG
   
   LOGGING_CONFIG = deepcopy(DEFAULT_LOGGING_CONFIG)
   
   LOGGING_CONFIG["handlers"]["custom_console"] = {
       "class": "logging.StreamHandler",
       "formatter": "airflow",
       "stream": sys.__stdout__,
   }
   
LOGGING_CONFIG["loggers"]["airflow.task"]["handlers"].append("custom_console")
   ```


-- 
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to