tirkarthi opened a new pull request, #39006:
URL: https://github.com/apache/airflow/pull/39006

   closes: #37443
   related: #37443
   
   We have been using this feature in Airflow 2.3.4 in the legacy log page by 
applying regex against lines to apply color for them. It
   received positive feedback from users since it's helpful in quickly 
identifying lines causing error while reading large log fies. This adds the 
feature to the new log tab in the grid. Users can set additional keywords 
besides common keywords like error and exception to highlight them since we 
found cases like "fail", "access denied", "missing" etc from trigger logs 
emitted by systems outside our Airflow that also were helpful in debugging but 
maybe not applicable to everyone. This also handles case where the log line 
already has an ansi code to wrap remaining part of the line with color to avoid 
conflict.
   
   Error and exception lines in red color with bold style
   
   
![image](https://github.com/apache/airflow/assets/3972343/8de30a01-073c-477f-9932-f2ecc4570d80)
   
   Case where warn keyword is present but it has it's own ansi code to handle 
nested ansi codes
   
   
![image](https://github.com/apache/airflow/assets/3972343/aec8ab83-5d85-4648-8074-4e6c03933ac5)
   
   


-- 
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: [email protected]

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

Reply via email to