I\'m using spring-boot-starter
, and would like to configure log4j2.xml
to log asynchron + different content to different logfiles.
I created th
Try this:
Exclude spring-boot-starter-logging e.g.
org.springframework.boot
spring-boot-starter
org.springframework.boot
spring-boot-starter-logging
Add dependencies for your logging interface e.g. slf4j
org.apache.logging.log4j
log4j-slf4j-impl
2.0.2
Add other logging implementations pointing to chosen logging interface e.g.
org.slf4j
jcl-over-slf4j
org.slf4j
jul-to-slf4j
org.slf4j
log4j-over-slf4j
Add your target logging implementation e.g.
org.apache.logging.log4j
log4j-api
2.0.2
org.apache.logging.log4j
log4j-core
2.0.2
And it should work.