You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "ppkarwasz (via GitHub)" <gi...@apache.org> on 2023/08/03 20:57:41 UTC

Re: [PR] Add a warning in case of incorrect syntax of highlighting style. (logging-log4j2)

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: notifications-unsubscribe@logging.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org