I tested slf4j-simple with the following configuration:
org.slf4j.simpleLogger.defaultLogLevel=warn
org.slf4j.simpleLogger.showThreadName=false
org.slf4j.simpleLogger.showLogName=false
org.slf4j.simpleLogger.warnLevelString=WARNING
and noticed that warning messages still display the level name WARN instead of WARNING, as I intended.
Then I checked the source code and found that the renderLevel method doesn't check the value of the warnLevelString property and always sets it to WARN, see
|
protected String renderLevel(int levelInt) { |
I tested slf4j-simple with the following configuration:
and noticed that warning messages still display the level name WARN instead of WARNING, as I intended.
Then I checked the source code and found that the
renderLevelmethod doesn't check the value of the warnLevelString property and always sets it to WARN, seeslf4j/slf4j-simple/src/main/java/org/slf4j/simple/SimpleLogger.java
Line 442 in 34c9d30