vy commented on issue #1495:
URL:
https://github.com/apache/logging-log4j2/issues/1495#issuecomment-1575688207
Integral values of the (standard) Log4j levels are as follows:
100 – `FATAL`
200 – `ERROR`
300 – `WARN`
400 – `INFO`
500 – `DEBUG`
600 – `TRACE`
(See `Level` and `StandardLevel` classes for details.)
Hence, your `LevelRangeFilter` configuration should be as follows:
`<LevelRangeFilter maxLevel="INFO"/>`
For instance, given the following configuration
```
<Configuration status="ERROR">
<Appenders>
<List name="List">
<LevelRangeFilter maxLevel="INFO"/>
<PatternLayout pattern="%m%ex"/>
</List>
</Appenders>
<Loggers>
<Root level="DEBUG">
<AppenderRef ref="List"/>
</Root>
</Loggers>
</Configuration>
```
the below code snippet
```
logger.trace("0");
logger.debug("1");
logger.info("2");
logger.warn("3");
logger.error("4");
````
produces
```
2
3
4
```
I think your issue is misconfiguration, hence I am closing the ticket. Feel
free to reopen it if you think otherwise.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]