https://github.com/callicoder/spring-boot-log4j-2-demo
Spring Boot Log4j2 Demo with Async Loggers
https://github.com/callicoder/spring-boot-log4j-2-demo
log4j2 spring-boot
Last synced: 18 days ago
JSON representation
Spring Boot Log4j2 Demo with Async Loggers
- Host: GitHub
- URL: https://github.com/callicoder/spring-boot-log4j-2-demo
- Owner: callicoder
- Created: 2017-08-11T14:08:13.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-04T05:50:46.000Z (over 7 years ago)
- Last Synced: 2025-06-11T00:02:59.317Z (18 days ago)
- Topics: log4j2, spring-boot
- Language: Shell
- Homepage: https://www.callicoder.com/spring-boot-log4j-2-example/
- Size: 128 KB
- Stars: 33
- Watchers: 4
- Forks: 49
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Spring Boot and Log4j 2 Example
Learn how to use Log4j 2 with Spring Boot -
https://www.callicoder.com/spring-boot-log4j-2-example/
## Requirements
1. Java - 1.8.x
2. Maven - 3.x.x
## Steps to setup
**1. Clone the application**
```bash
git clone https://github.com/callicoder/spring-boot-log4j-2-demo.git
```**2. Build and run the app using maven**
```bash
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 -
```bash
mvn spring-boot:run
```