Is it possible on Spring Boot 1.5.2 to use log4j2 property configuration as opposed to xml?
The logging documentation over on the official spring docs seems to indicate only xml is supported.
https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-logging.html
Yes you can. In my case I couldn't get Spring Boot to find my log4j2.properties
. I had to specify inside application.properties
:
logging.config=src/main/resources/log4j2.properties
Whereas I didn't have to do that if I had log4j2.xml
in the same folder
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With