dev@glassfish.java.net

Re: logging.properties file

From: Kedar Mhaswade <Kedar.Mhaswade_at_Sun.COM>
Date: Wed, 10 Sep 2008 13:55:00 -0700

June.Parks_at_Sun.COM wrote:
> Will the domain.xml elements be used after Prelude or are they going
> away permanently?

That's yet to be decided. My belief is it is going to be respected after
Prelude. v3 final is compatible with V2 by definition.

>
> Is editing the logging.properties file the only way to set log levels,
> or can users also use the GUI or CLI?

Tool support will eventually show up. Otherwise, users will be
extremely unhappy. Also, the changes to log levels will be dynamic
for any logger defined as an attribute or a property.

If I were to do this, I will respect the logging-service element in
domain.xml in its entirety and generate logging.properties that can
be reloaded by log infrastructure upon any change. For better or for
worse, domain.xml/logging-service has sealed our fate here.

What's not clear is if we will continue supporting editing of logging.properties
by hand *after Prelude* mainly because we will have tool support. Again,
my belief is it will, since it's hard to take out any code that's once
put in. But if we do have support for this for v3 final, we will need
to document/support and test it.


-Kedar

>
> June
>
> On 09/10/08 13:34, Carla Mott wrote:
>> There are changes in the logger that need to be documented but not
>> sure where they should end up. For v3 prelude users need to edit the
>> logging.properties file to configure the logger. This file is in the
>> same directory as domain.xml.
>>
>> We do support dynamically updating the logger level in v3 prelude.
>> This means that the server doesn't need to be restarted for the new
>> value to take affect. The only way to do this for prelude is to edit
>> the logging.properties file as there is no tool support yet. I did
>> put examples of what the user needs to do to set the logging levels at
>> the end of the logging.properties file.
>>
>>
>> Carla
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>