[logback-dev] [JIRA] (LOGBACK-1430) heuristics to automatically disable ANSI color code is not supported
QOS.CH (JIRA)
noreply-jira at qos.ch
Fri Oct 12 11:49:00 CEST 2018
Simon created LOGBACK-1430:
------------------------------
Summary: heuristics to automatically disable ANSI color code is not supported
Key: LOGBACK-1430
URL: https://jira.qos.ch/browse/LOGBACK-1430
Project: logback
Issue Type: Improvement
Environment:
Reporter: Simon
Assignee: Logback dev list
Logback ConsoleAppender supports color output using ANSI code but some consoles does not support it well and so print some crappy characters (like [eclipse IDE console|https://bugs.eclipse.org/bugs/show_bug.cgi?id=112948] or some windows platform ):
{code:java}
[main] [34mINFO [0;39m [36mo.e.l.s.d.Server[0;39m - Web server started at http://0.0.0.0:8080/.
{code}
This makes this feature hard to use because you should accept to be ugly in some conditions to be pretty in others. The trade-off doesn't seem worthy.
A solution could be to add some heuristic to know if logback should use ANSI code or not.
You could have a look at the way picocli do it : [https://github.com/remkop/picocli/issues/512#issuecomment-429170587]
If you're not so confident because you don't want to break behavior of ConsoleAppender, you could begin with an other ConsoleAppender.
--
This message was sent by Atlassian JIRA
(v7.3.1#73012)
More information about the logback-dev
mailing list