You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by "Raman Gupta (JIRA)" <ji...@apache.org> on 2016/11/10 01:02:33 UTC

[jira] [Created] (LOG4J2-1685) Single property to disable all color output

Raman Gupta created LOG4J2-1685:
-----------------------------------

             Summary: Single property to disable all color output
                 Key: LOG4J2-1685
                 URL: https://issues.apache.org/jira/browse/LOG4J2-1685
             Project: Log4j 2
          Issue Type: Bug
          Components: Appenders
    Affects Versions: 2.7
            Reporter: Raman Gupta
            Priority: Minor


I am deploying an app to a Windows server. The app will write logs to standard output which will then be captured by some wrapper process.

My default configuration contains ansi escapes for color, because they are nice for every situation except this one.

It would be nice if there was a simple way to disable all ansi output via a system property and/or environment variable e.g.

`-Dlog4j.ansi.enabled=false`

This would operate similarly to the Spring Boot `spring.output.ansi.enabled` property (http://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-logging.html).

In Spring Boot I believe this is handled by using conditionals in their logback configuration (which would be super-nice in log4j also).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org