ashb commented on a change in pull request #5681: [AIRFLOW-5065] Add colors to 
console log
URL: https://github.com/apache/airflow/pull/5681#discussion_r308732275
 
 

 ##########
 File path: airflow/config_templates/default_airflow.cfg
 ##########
 @@ -59,6 +59,11 @@ fab_logging_level = WARN
 logging_config_class =
 
 # Log format
+# Colour the logs when the controlling terminal is a TTY.
+colored_console_log = True
+colored_log_format = [%%(blue)s%%(asctime)s%%(reset)s] 
{{%%(blue)s%%(filename)s:%%(reset)s%%(lineno)d}} 
%%(log_color)s%%(levelname)s%%(reset)s - %%(log_color)s%%(message)s%%(reset)s
+colored_formatter_class = 
airflow.utils.log.colored_log.CustomTTYColoredFormatter
 
 Review comment:
   Nice.

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


With regards,
Apache Git Services

Reply via email to