Details
Description
setting level of logger as "info" in log4j2-cnfig.xml, whene initializing logger produces such an exception
WARN Error while converting string [info] to type [class org.apache.logging.log4j.Level]. Using default value [null]. java.lang.IllegalArgumentException: Unknown level constant [İNFO].
when i look at source the problem appears to be a forgotten Locale.ENGLISH in toUpperCase method
class:
org.apache.logging.log4j.Level
method:
public static Level valueOf(final String name) {
if (name == null)
final String levelName = name.toUpperCase();
if (levels.containsKey(levelName))
throw new IllegalArgumentException("Unknown level constant [" + levelName + "].");
}