Failed to bind properties under logging.level.* or someproperty.*=some_value
17,898
You need to explicitly mention logger name, if you are using SpringBoot 2.x.x, which you can notice when you compare documentation of both the versions.
... using
logging.level.<logger-name>=<level>
where level is one of TRACE, DEBUG, INFO, WARN, ERROR, FATAL, or OFF. ...
Eg:
logging.level.root=WARN
...
logging.level.*=LEVEL
where 'LEVEL' is one of TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF...
Eg:
logging.level.*=WARN
Author by
Admin
Updated on June 11, 2022Comments
-
Admin about 2 years
After i migrated from Spring boot 1.5 to 2.x i have the below problem:
APPLICATION FAILED TO START Description: Failed to bind properties under logging.level to java.util.Map<java.lang.String, java.lang.String>: Reason: No converter found capable of converting from type [java.lang.String] to type [java.util.Map<java.lang.String, java.lang.String>] Action: Update your application's configuration
In properties I have
logging.level.*=debug
It works if I go back to version 1.5.x Can anyone point me in the right way?
UPDATE : The same problem happens when I use
someproperty.*=some_value
That means the
.*=
is not supported in SpringBoot 2.0 ? -
Admin almost 6 yearsThe
property.otherproperty.*=default value
does not work anymore in SpringBoot 2.x -
Ravi almost 6 years@CostelDRAGU Yes, that is exactly what I wrote in my answer. I didn't get what are you trying to say