users@glassfish.java.net

configuring logging levels for packages and individual classes

From: janne postilista <jannepostilistat_at_gmail.com>
Date: Thu, 23 Sep 2010 11:26:22 +0300

Hi,

 I'm configuring logging for my application. I initialize logger with
each class name (using slf4j) as logger name:

    private static final Logger log = LoggerFactory.getLogger(FooService.class);

Now I can configure logger levels using glassfish admin console for

com.my.package.FooService => OFF/FINE/...

And this works fine. But I want to be able to configure logging levels
by package name.

I don't seem to be able to, I have tried adding categories like

com.my.package
com.my.package.*

but they don't work.