dev@glassfish.java.net

Re: How to control logging level for the "core" logger

From: Lloyd L Chambers <Lloyd.Chambers_at_Sun.COM>
Date: Fri, 02 Feb 2007 09:26:25 -0800

Dunno...

On Feb 2, 2007, at 8:57 AM, Tim Quinn wrote:

> 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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>