I am using Spring Boot and want to completely disable the automatic logging configuration and use SLF4J and logback directly instead.
I've tried the following:
@EnableAutoConfiguration(exclude={LoggingApplicationListener.class})
Which didn't work. Is there a way to completely disable the spring boot logging configuration?
I believe that Spring uses a property that overrides the configuration set by default and the annotation you're using.
I once had the same problem and I solved it by specifying the following:
-Dlogging.config=log4j-live.xml -Dlog4j.debug
Let me know if that works for you.
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