Joris van Heesch created LOG4J2-2130:
----------------------------------------
Summary: AppenderRef 'level' vs 'ThresholdFilter'
Key: LOG4J2-2130
URL: https://issues.apache.org/jira/browse/LOG4J2-2130
Project: Log4j 2
Issue Type: Question
Components: Appenders
Affects Versions: 2.10.0
Reporter: Joris van Heesch
Priority: Minor
Is there a significant difference between the following two configurations,
i.e. are there certain elements to consider in choosing one over the other?
1.
{code:xml}
<AppenderRef ref="out">
<ThresholdFilter level="anyValidLevel"/>
</AppenderRef>
{code}
2.
{code:xml}
<AppenderRef ref="out" level="anyValidLevel"/>
{code}
I noticed the methods isFilteredByAppenderControl() and isFilteredByLevel() in
class AppenderControl are annotated with @PerformanceSensitive, but I don't
know if that's relevant.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)