[ 
https://issues.apache.org/jira/browse/LOG4J2-1211?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15041568#comment-15041568
 ] 

Patric R. commented on LOG4J2-1211:
-----------------------------------

In the meanwhile I realized that the values of minLevel/maxLevel must be 
interchanged to work:

      <Filters>
        <LevelRangeFilter minLevel="INFO" maxLevel="TRACE" />
      </Filters>

Is this the expected behavior?



> LevelRangeFilter seems not to work correctly
> --------------------------------------------
>
>                 Key: LOG4J2-1211
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-1211
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Filters
>    Affects Versions: 2.4.1
>            Reporter: Patric R.
>
> Hi,
> I'm using strict xml configuration.
> When using the following filter definition, nothing is output by the 
> corresponding Appender:
>       <Filters>
>          <LevelRangeFilter minLevel="TRACE"
>            maxLevel="INFO" />
>       </Filters>
> I'd expect that it should process all log events between TRACE and INFO.
> When removing the <LevelRangeFilter />-Tag, I can see all log events.
> Am I doing something wrong?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to