You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Daniel Lynes (Jira)" <lo...@logging.apache.org> on 2021/08/15 13:46:00 UTC
[jira] [Updated] (LOGCXX-529) Support color and highlight
conversion patterns
[ https://issues.apache.org/jira/browse/LOGCXX-529?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Lynes updated LOGCXX-529:
--------------------------------
Description:
Cannot use the standard log4j conversion patterns for colors. It would be very useful to highlight log entries for errors and warnings especially.
An example of something that doesn't work:
log4j.appender.A1.layout.ConversionPattern=%highlight\{%r [%t] %-5p}{FATAL=red, ERROR=red, WARN=yellow bold, INFO=gray, DEBUG=green bold, TRACE=blue} %c - %m%n
was:
Cannot use the standard log4j conversion patterns for colors. It would be very useful to highlight log entries for errors and warnings especially.
An example of something that doesn't work:
{{log4j.appender.STDOUT.layout.ConversionPattern=%highlight\{%d %-5p [%t] (%F:%L) - %m%n}{FATAL=red, ERROR=red, WARN=yellow bold, INFO=black, DEBUG=green bold, TRACE=blue}}}
> Support color and highlight conversion patterns
> -----------------------------------------------
>
> Key: LOGCXX-529
> URL: https://issues.apache.org/jira/browse/LOGCXX-529
> Project: Log4cxx
> Issue Type: New Feature
> Components: Layout
> Affects Versions: 0.11.0
> Environment: Ubuntu 20.04.2 LTS in a VM in VirtualBox
> Reporter: Daniel Lynes
> Priority: Major
> Fix For: 0.11.0
>
>
> Cannot use the standard log4j conversion patterns for colors. It would be very useful to highlight log entries for errors and warnings especially.
> An example of something that doesn't work:
>
>
> log4j.appender.A1.layout.ConversionPattern=%highlight\{%r [%t] %-5p}{FATAL=red, ERROR=red, WARN=yellow bold, INFO=gray, DEBUG=green bold, TRACE=blue} %c - %m%n
--
This message was sent by Atlassian Jira
(v8.3.4#803005)