[ 
https://issues.apache.org/jira/browse/AIRFLOW-6404?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17006695#comment-17006695
 ] 

ASF GitHub Bot commented on AIRFLOW-6404:
-----------------------------------------

ohadmata commented on pull request #6998: [AIRFLOW-6404] - ANSI color support 
for WebUI logger
URL: https://github.com/apache/airflow/pull/6998
 
 
   Add ANSI color support in order to use standard packages like colorama 
(https://pypi.org/project/colorama/).
   
   The coloring commands are:
   
   `ESC [ 0 m       # reset all (colors and brightness)
   
   # FOREGROUND:
   ESC [ 30 m      # black
   ESC [ 31 m      # red
   ESC [ 32 m      # green
   ESC [ 33 m      # yellow
   ESC [ 34 m      # blue
   ESC [ 35 m      # magenta
   ESC [ 36 m      # cyan
   ESC [ 37 m      # white
   
   # BACKGROUND
   ESC [ 40 m      # black
   ESC [ 41 m      # red
   ESC [ 42 m      # green
   ESC [ 43 m      # yellow
   ESC [ 44 m      # blue
   ESC [ 45 m      # magenta
   ESC [ 46 m      # cyan
   ESC [ 47 m      # white`
 
----------------------------------------------------------------
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]


> Add ANSI color support
> ----------------------
>
>                 Key: AIRFLOW-6404
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-6404
>             Project: Apache Airflow
>          Issue Type: New Feature
>          Components: logging, ui
>    Affects Versions: 1.10.7
>            Reporter: ohad
>            Assignee: ohad
>            Priority: Trivial
>              Labels: Color, logger
>             Fix For: 1.10.8
>
>
> Add ANSI color support in order to present colored logs in the airflow webUI
> {code:java}
> ESC [ 0 m       # reset all (colors and brightness)
> # FOREGROUND:
> ESC [ 30 m      # black
> ESC [ 31 m      # red
> ESC [ 32 m      # green
> ESC [ 33 m      # yellow
> ESC [ 34 m      # blue
> ESC [ 35 m      # magenta
> ESC [ 36 m      # cyan
> ESC [ 37 m      # white
> # BACKGROUND
> ESC [ 40 m      # black
> ESC [ 41 m      # red
> ESC [ 42 m      # green
> ESC [ 43 m      # yellow
> ESC [ 44 m      # blue
> ESC [ 45 m      # magenta
> ESC [ 46 m      # cyan
> ESC [ 47 m      # white
>  {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to