dev@glassfish.java.net

How to control logging level for the "core" logger

From: Tim Quinn <Timothy.Quinn_at_Sun.COM>
Date: Fri, 02 Feb 2007 10:57:13 -0600

Hi.

There is some code that uses the "core" logger (such as, for example,
AbstractManager.java in appserv-core/src/java/com/sun/enterprise/server).

But how can I control what level is logged?

The domain.xml does not have a setting for core -- the domain DTD does
not even define that attribute on the module-log-levels element.

Yet appserv-commons/src/java/com/sun/logging/LogDomains.java sets up a
logger for core.

How can I choose what logging level the server will use for core logging?

(I tried hacking the sun-domain_1_3.dtd in the ${install-dir}/lib/dtds
directory to add core as an attribute to module-log-levels, but the
server did not seem to use my revised dtd, complaining during start-up
that I had specified the unrecognized attribute "core" in my
domain.xml. I need to get on to other things so I didn't look into
where exactly the parsing is done to see where it's getting the DTD from.)

- Tim