Maybe the level isn't defined on that logger because it is defined on a parent logger so that logger just inherits the level of the parent and doesn't define the level itself. I don't know that is how it works but that is just a guess.
James Stauffer -----Original Message----- From: DE BENEDICTIS DAVIDE [mailto:[EMAIL PROTECTED] Sent: Friday, September 10, 2004 7:44 AM To: Log4J Users List Subject: Getting Logger level I'm trying to retrieve logging level for a configured logger. Everything works fine but if I call someLogger.getLevel(); I'm always getting null? And of course a nice NullPointerException... Java docs says that can be null. Why? And How I get the current Level? Thank you in advance. -- Davide De Benedictis --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
