Skip to content
Advertisement

Spring boot – Cannot turn off logging

I am trying to turn off the console output in STS for a spring boot application using the application.properties file.

Setting the value logging.level.root does seem to have some effect but I can never turn it off completely and nor can I turn off the auto configuration report output.

JavaScript

The banner does get turned off by the property spring.main.banner-mode.

For some reason with the above properties I still get DEBUG output from spring on startup:

JavaScript

There are more lines telling me which properties files are being loaded but I dont want to fill up this post with them.

Following from this I then get the autoconfiguration report output.

I am wondering if I have a configuration issue and if this would cause spring to continue to output on start up?

Advertisement

Answer

To answer my own question: after trial and error, I finally ended up with the following which suppresses all output on startup via the application.properties file:

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement