[
https://issues.apache.org/jira/browse/LOG4J2-1023?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14554507#comment-14554507
]
Mikael Ståldal commented on LOG4J2-1023:
----------------------------------------
Thanks, this is exactly what I want.
Just one small comment, it works when I use:
{code}
<Rewrite name="Rewrite">
<AppenderRef ref="Console"/>
<LevelRewritePolicy logger="org.apache.kafka.common.network">
<KeyValuePair key="WARN" value="INFO"/>
</LevelRewritePolicy>
</Rewrite>
{code}
but not when I use:
{code}
<Rewrite name="Rewrite">
<AppenderRef ref="Console"/>
<LevelRewritePolicy logger="org.apache.kafka.common.network">
<LevelPair key="WARN" value="INFO"/>
</LevelRewritePolicy>
</Rewrite>
{code}
Then it says:
bq. 2015-05-21 17:16:40,570 ERROR LevelRewritePolicy contains an invalid
element or attribute "LevelPair"
even though the @PluginElement has name "LevelPair".
> New RewritePolicy for changing level of a log event
> ---------------------------------------------------
>
> Key: LOG4J2-1023
> URL: https://issues.apache.org/jira/browse/LOG4J2-1023
> Project: Log4j 2
> Issue Type: New Feature
> Components: Core
> Affects Versions: 2.3
> Reporter: Mikael Ståldal
> Labels: configuration
> Fix For: 2.4
>
>
> It would be useful to have a RewritePolicy for changing the level of a log
> event.
> Some 3rd party libraries log stuff on wrong level, and I would like to be
> able to translate it.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]