Added a custom Log4j2 ArrayAppender that can be used in unit tests.