[
https://issues.apache.org/jira/browse/LOG4J2-2632?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17534259#comment-17534259
]
Tomáš Poledný commented on LOG4J2-2632:
---------------------------------------
Maybe it is just a documentation problem but I would like to have exactly this
feature for {{%ex}}. I do not want to use {{%xEx}} because I do not want to log
class packaging information. So there is not way how to log filtered stack
traces without class packaging information. So I would suggest to change the
type to suggestion or feature request.
> 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: Piotr Karwasz
> Priority: Minor
> Fix For: 2.18.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.7#820007)