dev@glassfish.java.net

Re: logger changes - this will help you

From: Jan Luehe <Jan.Luehe_at_Sun.COM>
Date: Fri, 19 Sep 2008 17:29:57 -0700

Thanks, Carla!

I'm having trouble setting the log level of the web related logger to FINE.

To do this, I've edited my domain's logging.properties and uncommented
this line:

  javax.enterprise.system.container.web.level=FINE

I understand that the settings in my domain's logging.properties are
supposed
to become effective by a call to
java.util.logging.LogManager.readConfiguration(),
which parses the logging properties file referenced by the
"java.util.logging.config.file"
system property. In v3, this system property points to the domain's
logging.properties.

I understand that all this is supposed to get triggered by
LogMangerService.postConstruct(), yet I don't see this method ever getting
called, which is why my domain's logging.properties is never getting
parsed ...


Jan


On 09/19/08 04:44 PM, Carla Mott wrote:
>
> Hi all,
>
> Jerome and I talked this morning and we think the code I just commited
> will help you. I modified LogDomains.java to in addition to looking
> for the resource bundle in the bundle of the calling class to also
> look in the common-util bundle (where LogDomains is) which is where
> most LogStrings.properties files are now.
>
>
> This reduces the urgency of moving those files now and we can wait to
> move them after prelude v3 is out.
>
> This time I ran the quicklook tests and didn't undeploy the tests. I
> then reran the tests again, restarting the server with the tests and
> both times the tests passed.
>
> Hope this helps,
> Carla
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>