users@glassfish.java.net

RE: configuring logging levels for packages and individual classes

From: Vincent Deschênes <vdeschenes_at_stelvio.com>
Date: Mon, 27 Sep 2010 16:47:18 -0400

I am using the java logger and the level I config in the console are working.

java.util.logging.Logger.getLogger(this.getClass().getName()).warning("This is a log string.");

In the config I use com.my.package
To be able to get my package under the list in the admin console I had to add a line to logging.properties in my domain config
folder.

The line look like this:
com.my.package.level=INFO



Hope this is usefull for you. Because I do not know more ;-)

Vincent