Monthly Archives: June 2023

Resetting Log4j/Log4j2 During a Unit Test

We are writing a log masking plugin, and need to support both PatternLayout and JsonLayout. Testing is pretty easy conceptually — create a logger, write data to the logger, and make sure the output (via OutputCaptor) is properly masked. The … Continue reading

Posted in Software | Tagged , , , , | Leave a comment