[ 
https://issues.apache.org/jira/browse/LOG4J2-2130?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Joris van Heesch updated LOG4J2-2130:
-------------------------------------
    Description: 
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 looked at the class AppenderControl, and noticed that - to my surprise - 
shouldSkip() checks isFilteredByAppenderControl() before isFilteredByLevel().
I also noticed both these methods are annotated with @PerformanceSensitive, but 
I don't know if any of this is relevant.


  was:
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.



> 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 looked at the class AppenderControl, and noticed that - to my surprise - 
> shouldSkip() checks isFilteredByAppenderControl() before isFilteredByLevel().
> I also noticed both these methods are annotated with @PerformanceSensitive, 
> but I don't know if any of this is relevant.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to