How to capture log events in tests with Log4j 2

By Mikael Ståldal