I\'m using spring-boot-starter
, and would like to configure log4j2.xml
to log asynchron + different content to different logfiles.
I created th
I've a better way:
Exclude logback logger:
org.springframework.boot
spring-boot-starter
org.springframework.boot
spring-boot-starter-logging
Add log4j2 boot starter:
org.springframework.boot
spring-boot-starter-log4j2
Source: http://docs.spring.io/spring-boot/docs/1.5.1.RELEASE/reference/htmlsingle/#howto-configure-log4j-for-logging
Enjoy!