dev@glassfish.java.net

Re: FINE log messages in --verbose

From: Marina Vatkina <Marina.Vatkina_at_Sun.COM>
Date: Tue, 07 Apr 2009 18:03:37 -0700

Carla,

--verbose means everything that goes to the server.log goes to the console. So
unless the logging code automatically adjusts the handler depending on the
enabled log levels, you need to use FINEST by default. Of course without
--verbose, nothing above INFO should automatically go to the console.

thanks,
-marina

Carla Mott wrote:
> Arun Gupta wrote:
>
>> So until this bug is fixed,
>>
>> FINE needs to be set in logging.properties (of GlassFish, not JDK_HOME
>> right?) and for that specific logger ?
>
> correct domains/domain1/config/logging.properties
>
>>
>> How do I know the logger corresponding to the property
>> "eclipselink.logging.level" set in persistence.xml ?
>>
> not sure
>
>> A noob question ...
>>
>> Is there a hierarchy of logger, for example:
>>
>> javax.enterprise.system.*=FINE
>
> yes. if you set javax.enterprise.system.level=FINE then all loggers
> starting with javax.enterprise.system will be set to FINE.
>
>>
>> and then everything under this domain is FINE logging as well.
>>
>> Also, I agree with Peter that default FINE level may dump lot more
>> messages than required by an average user.
>
> ok. I will set it to FINE
>
>>
>> -Arun
>>
>> Carla Mott wrote:
>>
>>> That's right. You may have to restart the server for this to take
>>> affect. Also you will need to set the appropriate logger to the FINE
>>> level too. At the point you don't want to see the messages you just
>>> set the logger level to INFO again. Soon I will update
>>> logging.properties to set the console level to FINEST by default.
>>>
>>> carla
>>>
>>> Marina Vatkina wrote:
>>>
>>>> It's a bug:
>>>> https://glassfish.dev.java.net/issues/show_bug.cgi?id=7512 but there
>>>> is a work around (that I didn't try): in the logging.properties file
>>>> set
>>>>
>>>> java.util.logging.ConsoleHandler.level=FINE
>>>>
>>>> Regards,
>>>> -marina
>>>>
>>>> Arun Gupta wrote:
>>>>
>>>>> "asadmin start-domain --verbose" does not show FINE+ log messages.
>>>>> This is with b43 and might have been happening earlier as well.
>>>>>
>>>>> Is that intentional ?
>>>>>
>>>>> Can I override it ?
>>>>>
>>>>> -Arun
>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>