Skip to content

renderLevel ignores the value of warnLevelString #471

Description

@vitalijr2

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) {

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

DONEfor fixed issues

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions