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

   Update API to return `color_log_error_keywords` and 
`color_log_warning_keywords` from airflow.cfg through config API. Then in 
frontend parse the log message to add color attribute to span tag based on the 
keyword.
   
   Notes to self and review : 
   
   1. The semantic tokens in light theme appear to be hard to read. I guess it 
could be due to the Code block adding some more background color.
   2. For task log preview I have disabled highlighting since it didn't make 
sense and it was already filtered by error/critical level.
   
   airflow.cfg values to test as per the screenshot
   
   ```ini
   color_log_error_keywords = error,exception,group
   color_log_warning_keywords = utils
   ```
   
   
![image](https://github.com/user-attachments/assets/5fdb233a-5de1-4e84-ab42-19b5faef53e9)
   
   
![image](https://github.com/user-attachments/assets/3164f27b-989e-4c02-8127-75eec882eade)
   


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