Infact as I see, in your file you didn't specified verbosely a logger called "it.cineca.test.j2eeLog.LoggingBean" so log4j will use the "it.cineca.test". If you call getLevel on the latter you will get a not null level. Anyway calling getEffectiveLevel() will work. (I didn't know it) ;-)
> <logger name="it.cineca.test" additivity="false"> > <!-- Valori ammessi: DEBUG, INFO, WARN, ERROR, FATAL, > OFF, ALL --> > <level value="DEBUG"/> > Let us now suppose I have a class called > it.cineca.test.j2eeLog.LoggingBean. > Well, whenever I call "Logger.getLogger(LoggingBean.class)" I > get a Logger instance whose inner Level instance is null! > While whenever I call "Logger.getLogger("it.cineca.test")" > everything works fine. > Why?! Any hints? > > Thanks in advance, --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]