You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/12/07 02:16:15 UTC

[GitHub] [airflow] blag commented on issue #9006: Provide a way to config log level for airflow processes

blag commented on issue #9006:
URL: https://github.com/apache/airflow/issues/9006#issuecomment-987504611


   I think this is already possible by setting the log level of the root logger. To do so, follow the [Advanced Configuration guide](https://airflow.apache.org/docs/apache-airflow/stable/logging-monitoring/logging-tasks.html#advanced-configuration).
   
   * [`logging.debug`](https://github.com/apache/airflow/blob/fc0fb22c120a7c12426ecaf6254159e7daf2de9e/airflow/settings.py#L442) logs to the root logger
   * The log level for the [root logger](https://github.com/apache/airflow/blob/fc0fb22c120a7c12426ecaf6254159e7daf2de9e/airflow/config_templates/airflow_local_settings.py#L114) is configured in the [`DEFAULT_LOGGING_CONFIG` variable](https://github.com/apache/airflow/blob/fc0fb22c120a7c12426ecaf6254159e7daf2de9e/airflow/config_templates/airflow_local_settings.py#L57) of `airflow_local_settings.py`
   * The log level for the root logger is configured in `airflow.cfg`, so ensure you have a `logging` section and a `LOGGING_LEVEL` variable:
     ```ini
     LOGGING_LEVEL = info
     ```
   
   Possibly related: #12414
   
   @halilduygulu Can you try out the above and see if that works for you? If so, this issue can be closed.


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org