persistence@glassfish.java.net

Re: [Fwd: [Issue 998] Logging integration with GF happens too late]

From: Marina Vatkina <Marina.Vatkina_at_Sun.COM>
Date: Mon, 28 Aug 2006 13:37:32 -0700

Hi Andrei,

This code doesn't take into consideration an appserver
logger (JavaLog). Which means that all logging until JavaLog
is used (i.e. integration is enabled) is logged by the
default logger, which comes into GF as a stdout, i.e. logged
at INFO level and stdout logger name.

Code responsible for setting the JavaLog logger is in setNewLog
called from updateServerPlatform.

thanks,
-marina

Andrei Ilitchev wrote On 08/24/06 07:54,:
> Hi Marina,
>
> initOrUpdateLogging method is called very early in predeploy, it sets the
> correct logging level.
>
> Thanks,
> Andrei
>
>
> ----- Original Message -----
> From: "Marina Vatkina" <Marina.Vatkina_at_Sun.COM>
> To: "persistence" <persistence_at_glassfish.dev.java.net>; "Tom Ware"
> <tom.ware_at_oracle.com>
> Sent: Wednesday, August 23, 2006 6:44 PM
> Subject: [Fwd: [Issue 998] Logging integration with GF happens too late]
>
>
>
>>Tom,
>>
>>Do you see a problem if updateServerSession() is called much earlier
>>in predeploy, just after the session is created? This will allow to
>>initialize the loggers correctly.
>>Another option would be to call a subset of the methods from the
>>method body either relying on the state or moving them to a separate
>>method.
>>
>>What do you think?
>>
>>thanks,
>>-marina
>>
>>-------- Original Message --------
>>From: mvatkina_at_dev.java.net
>>Subject: [Issue 998] Logging integration with GF happens too late
>>To: issues_at_glassfish.dev.java.net
>>
>>https://glassfish.dev.java.net/issues/show_bug.cgi?id=998
>>
>>
>>
>>User mvatkina changed the following:
>>
>> What |Old value |New value
>>================================================================================
>> Summary|Logging integration with G|Logging integration
>>with G
>> |F is broken |F happens too late
>>--------------------------------------------------------------------------------
>>
>>
>>
>>
>>------- Additional comments from mvatkina_at_dev.java.net Wed Aug 23 22:17:29
>>+0000 2006 -------
>>Actually, it's the first set of messages are logged at INFO level. Later
>>on the
>>server session is initialized (or something else is setup), and the
>>messages are
>>displayed correctly.
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: issues-unsubscribe_at_glassfish.dev.java.net
>>For additional commands, e-mail: issues-help_at_glassfish.dev.java.net
>>
>>