You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Remko Popma (JIRA)" <ji...@apache.org> on 2018/05/25 06:22:00 UTC
[jira] [Commented] (LOG4J2-2342) highlight not working anymore
[ https://issues.apache.org/jira/browse/LOG4J2-2342?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16490290#comment-16490290 ]
Remko Popma commented on LOG4J2-2342:
-------------------------------------
The defaulting has changed and in recent versions you need to explicitly enable ansi colors. I forgot the name of the system property but it’s in the manual in the pattern layout section.
> highlight not working anymore
> -----------------------------
>
> Key: LOG4J2-2342
> URL: https://issues.apache.org/jira/browse/LOG4J2-2342
> Project: Log4j 2
> Issue Type: Bug
> Affects Versions: 2.9.0, 2.9.1, 2.10.0, 2.11.0
> Reporter: Pascal Knüppel
> Priority: Major
> Fix For: 2.8.2
>
>
> the ansi color support is broken since version 2.9.0 I used to setup my pattern like this:
>
> {color:#e8bf6a}<{color}{color:#cc7832}PatternLayout{color} {color:#bababa}pattern{color}{color:#a5c261}="%d\{DATE} [%t] %highlight\{%-5level}{FATAL=bright red, ERROR=red, WARN=yellow, INFO=white, DEBUG=bright blue, TRACE=green } %logger\{36} (%F:%L) - %highlight\{%msg%n%throwable}{FATAL=bright red, ERROR=red, WARN=yellow, INFO=white, DEBUG=bright blue, TRACE=green }"{color}{color:#e8bf6a}/>{color}
> but when I updated recently from 2.8.2 to version 2.11.0 it did not work anymore. I tried all versions backwards to 2.8.2 but all versions above 2.8.2 wont work with highlighting...
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)