Learn how to use Log4j 2 with Spring Boot -
https://www.callicoder.com/spring-boot-log4j-2-example/
-
Java - 1.8.x
-
Maven - 3.x.x
1. Clone the application
git clone https://github.com/callicoder/spring-boot-log4j-2-demo.git
2. Build and run the app using maven
cd spring-boot-log4j-2-demo
mvn package
java -jar target/log4j2-demo-0.0.1-SNAPSHOT.jar
You can also run the app without packaging it using -
mvn spring-boot:run