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

Hervé Boutemy commented on MNG-3507:
------------------------------------

terminal detection to disable color when not a terminal is done in Jansi
but there are issues in Jansi on Windows with MingGW/GitBash/Cygwin: see 
MNG-6282 MNG-6218 https://github.com/fusesource/jansi/issues/94 
there is a workaround coded in Maven 3.5.2 MNG-6205 which fully disables color 
when stdout is not a terminal, ignoring stderr (notice: I'm not sure Maven 
outputs anything on stderr, so perhaps the workaround does not really have any 
limitation in our Maven case...)

the issue in Jansi was tracked down to jansi-native 
https://github.com/fusesource/jansi-native/issues/11
I got recently Jansi committership given the hard work I did for 1 year on 
improving Jansi (given the issues we met when integrating in Maven), but I 
don't have any Windows compiler or C on Windows knowledge to provide a fix: 
looking for a contributor who has knowledge to do the improvement...

> ANSI color logging for improved output visibility
> -------------------------------------------------
>
>                 Key: MNG-3507
>                 URL: https://issues.apache.org/jira/browse/MNG-3507
>             Project: Maven
>          Issue Type: New Feature
>          Components: Logging
>            Reporter: Rahul Thakur
>            Assignee: Hervé Boutemy
>             Fix For: 3.5.0-alpha-1, 3.5.0
>
>         Attachments: maven-colorlogger.zip, 
> plexus-colorized-ConsoleLogger.patch, pom.xml
>
>
> Is it possible for Maven to use ANSI color logging? IMO it would make Maven 
> logs much easier to read and increase the visibility of items that the user 
> want to see at any given point in time. 
> I think Andrew Williams did some work under Plexus sandbox to enable color 
> logging. There also a color logger available in Ant. 
> http://ant.apache.org/manual/listeners.html#AnsiColorLogger



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to