ppkarwasz commented on PR #1637:
URL: https://github.com/apache/logging-log4j2/pull/1637#issuecomment-1664639402
@aawad6,
A while back I added a `@UsingStatusListener` JUnit 5 extensions, which
allows you to capture status logger messages into a `ListStatusListener`:
```java
@Test
@UsingStatusListener
public void testSomething(final ListStatusListener listener) {
...
assertThat(listener.findStatusData(Level.WARN)).hasSize(1);
...
}
```
Regarding the "disableAnsi" and "noConsoleNoAnsi" keys, we could probably
deal with them better. E.g. instead of removing them through a regex, we can
add them to the `dontEscapeKeys` and deal with them in the `HighlightConverter`
constructor.
--
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]