You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Volkan Yazici (Jira)" <ji...@apache.org> on 2025/01/10 12:53:00 UTC
[jira] [Closed] (LOG4J2-2632) Package filter not working with %ex conversion pattern
[ https://issues.apache.org/jira/browse/LOG4J2-2632?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Volkan Yazici closed LOG4J2-2632.
---------------------------------
> Package filter not working with %ex conversion pattern
> ------------------------------------------------------
>
> Key: LOG4J2-2632
> URL: https://issues.apache.org/jira/browse/LOG4J2-2632
> Project: Log4j 2
> Issue Type: Documentation
> Components: Pattern Converters
> Affects Versions: 2.11.1
> Reporter: Simon Charette
> Assignee: Volkan Yazici
> Priority: Minor
> Fix For: 2.25.0
>
>
> When using this log pattern in a RollingFile appender, the packages are not filtered out:
> {code:java}
> %5p %d [%t] (%F:%L) %c - %m%ex{filters(org.apache.tomcat.util,org.apache.catalina,org.apache.coyote)}%n{code}
> If instead I use:
> {code:java}
> %5p %d [%t] (%F:%L) %c - %m%xEx{filters(org.apache.tomcat.util,org.apache.catalina,org.apache.coyote)}%n{code}
> then they are filtered out.
> According to the documentation both should work.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)