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_r308717784
##########
File path: airflow/config_templates/airflow_local_settings.py
##########
@@ -72,8 +76,13 @@
'disable_existing_loggers': False,
'formatters': {
'airflow': {
+ 'format': COLORED_LOG_FORMAT if COLORED_LOG else LOG_FORMAT,
+ 'class': 'airflow.utils.log.colored_log.CustomTTYColoredFormatter'
if COLORED_LOG else 'logging.Formatter'
Review comment:
This formatter is used by all the remote log storage formats (S3, GCP etc) ,
so lets leave "airflow" as plain text and create an "airflow_coloured" and use
that where needed instead.
----------------------------------------------------------------
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