users@glassfish.java.net

Problem with logger...

From: Witold Szczerba <pljosh.mail_at_gmail.com>
Date: Fri, 5 Oct 2007 12:41:31 +0200

Hi there,
I must be doing something wrong, here is the example of session bean:

package mycompany.core.services;
@Stateless
public class TestBean implements TestLocal {

   Logger logger = Logger.getLogger(getClass().toString());
   public void test() {
      logger.info("Hello there");
   }
}

I launch application, invoke test and in output I can see "Hello there".
But later, I have opened admin console:

Application Server -> Logging -> Log levels -> add property:
name:
mycompany.core.services
value:
SEVERE

And "hello there" appears every time I invoke test method.
What's wrong?

Regards,
Witold Szczerba