2

I have a spring cloud application, which under the covers uses spring boot.

In the bootstrap phase of the app I am using some classes from the apache commons config library under: org.apache.commons.configuration

My application is started with this flag per the spring docs:

-Dlogging.level.org.apache.commons.configuration=INFO

Despite this, i am still getting DEBUG level logs emitted during the bootstrap phase of spring....

I am lost as to how to properly specify the log level of INFO specified for the bootstrap phase of spring boot.

bitsofinfo
  • 994
  • 3
  • 16
  • 34

2 Answers2

3

Ensure you are not setting debug=true in application properties or not passing --debug flag to the application.

In application.properties set:

debug=false
Mradul Pandey
  • 2,034
  • 1
  • 14
  • 12
2

The configuration of spring boot has a specific order, so probably somewhere in the application or bootstrap configuration files the logging level is configured to DEBUG. Source: https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-external-config.html

Jeff
  • 1,871
  • 1
  • 17
  • 28
  • I understand, however this system level property to the JVM is `-Dlogging.level.org.apache.commons.configuration=INFO` yet that is eminating DEBUG logs – bitsofinfo Aug 16 '18 at 06:47