This content has been marked as final.
Show 2 replies
-
1. Re: JBOSS 7.1.1 Logging problem when change Java version
jamezp Jan 23, 2015 7:33 PM (in response to mireksz)Can you explain what you mean by it changes your logging level to DEBUG? Like all you see is debug messages.
--
James R. Perkins
-
2. Re: Re: JBOSS 7.1.1 Logging problem when change Java version
mireksz Jan 24, 2015 4:20 AM (in response to jamezp)The root logging level which I set to WARN change to DEBUG. After degugging jboss-logging subsystem problem is in
org.apache.log4j.JBossLevelMapping.getPriorityFor(Level)
the code
public static Level getPriorityFor(java.util.logging.Level level) { final Level p; return (p = priorityMap.get(level)) == null ? DEFAULT_LOG4J_LEVEL : p; }
the priorityMap is a IdentityHashMap and contains key "WARN"(and many others) but the input param "level" is also WARN (value from config) but is not the same object(different memory id) as WARN on map. From this code I find that map return null what means that takes DEFAULT_LOG4J_LEVEL which is a DEBUG :-(