hi,
I'm using v. 2.11.1. In my pom.xml I have:
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>2.11.1</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.11.1</version>
</dependency>
I want to filter some packages in logged exceptions.
I'm using a log4j2.properties as a configuration file.
Using this pattern, the packages placed inside 'filters' are filtered
correctly.
appender.rolling.layout.pattern = %d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L -
%m%xEx{filters(org.jboss,javax.servlet,io.undertow,org.wildfly)}%n
But in this case it doesn't work and all the stacktrace is logged (I use
%ex instead of %xEx):
appender.rolling.layout.pattern = %d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L -
%m%ex{filters(org.jboss,javax.servlet,io.undertow,org.wildfly)}%n
Is this an error or I'm configuring the pattern badly ?
Thank you !