Improved logging filter by using log4j2.