for those, who don’t know where to put your log4j2.xml file the answer is simple: src/main/resources