[
https://issues.apache.org/jira/browse/LOG4J2-984?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14380984#comment-14380984
]
Jonas Höpfner commented on LOG4J2-984:
--------------------------------------
I attached a Git patch for the HighlightConverter class and added a JUnit test.
The change is pretty much copied from the StyleConverter class. Maybe the
similarities of these two classes could be refactored out?
> PatternLayout %highlight to support noConsoleNoAnsi like %style
> ---------------------------------------------------------------
>
> Key: LOG4J2-984
> URL: https://issues.apache.org/jira/browse/LOG4J2-984
> Project: Log4j 2
> Issue Type: Improvement
> Components: Layouts
> Reporter: Gary Gregory
> Attachments: LOG4J2-984.patch
>
>
> Quoting the
> [comment|https://issues.apache.org/jira/browse/LOG4J2-413?focusedCommentId=14379876&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14379876]
> in [LOG4J2-413]:
> {quote}
> The change only works for the style pattern (class StyleConverter) but not
> for the highlight pattern (class HighlightConverter). The later ignores the
> noConsoleNoAnsi setting.
> {quote}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]