nuclearpinguin commented on issue #5681: [AIRFLOW-5065] Add colors to console 
log
URL: https://github.com/apache/airflow/pull/5681#issuecomment-516416096
 
 
   Finally I decided to extend `colorlog.TTYColoredFormatter` by adding colors 
to message's arguments and error traceback. The code is simpler and allows to 
define color format like this: 
   ```python
   '[%(blue)s%(asctime)s%(reset)s] {%(blue)s%(filename)s%(reset)s:%(lineno)d} 
%(log_color)s%(levelname)s%(reset)s - %(message_log_color)s%(message)s'
   ```
   
   Now two dependencies are required: `colorlog` and `termcolor`.
   
   

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to