log4j2-programmatic-config
Programmatic Configuration with Log4j 2 1. Introduction In this tutorial, we’ll take a look at different ways to programmatically configure Apache Log4j 2. 2. Initial Setup To start using Log4j 2, we merely need to include the log4j-core and log4j-slf4j-impl dependencies in our pom.xml: <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-core</artifactId> <version>2.11.0</version> </dependency> <dependency>… Continue Reading log4j2-programmatic-config