An open API service indexing awesome lists of open source software.

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

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
```