persistence@glassfish.java.net

Re: How to configure logging for java.util.logging?

From: Wonseok Kim <guruwons_at_gmail.com>
Date: Thu, 11 Jan 2007 20:48:58 +0900

Hi,
On 1/11/07, Jon Miller <jemiller_at_uchicago.edu> wrote:
>
> Wonseok, much thanks. It seems to be working now (using V2 B30). This is a
> big help because I'm using java.util.logging for everything else and the
> output if you use it with the normal logging was getting out of order for
> some reason. Any idea why? When I used java.util.logging it's in the
> correct
> order.


I guess, if there are two logging system at the same time, they can be mixed
up.

One other question: what does FCS mean? I know it means it's a fully tested
> release version, but, I don't know what the acronym means. Are the V2
> builds
> weekly snapshots or something? Any idea when V2 will go FCS?


FCS stands for First Customer Shipment. I guess V2 will go final by May
(JavaOne), however I think TopLink Essentials has been improved constantly
so current/latest build (even nighly build) is more stable than V1 FCS. :-)

-Wonseok

Jon
>
> ----- Original Message -----
> From: "Wonseok Kim" <guruwons_at_gmail.com>
> To: <persistence_at_glassfish.dev.java.net>
> Sent: Thursday, January 04, 2007 8:53 PM
> Subject: Re: How to configure logging for java.util.logging?
>
>
> > Hi Jon,
> > Did you run with v2 build? v1(9.0 FCS or 9.0u1) doesn't have this
> feature.
> >
> > I confirmed JavaLogger is used well in single persistence unit, but I
> > found
> > there is a bug if multiple persistence units exist in persistence.xml.
> If
> > your persistence.xml has one unit, it should work well.
> >
> > Could you try with latest v2 build?
> >
> > Thanks,
> > -Wonseok
> >
> > On 1/4/07, Wonseok Kim <guruwons_at_gmail.com> wrote:
> >>
> >> Hi Jon,
> >>
> >> It was working well, but I could see that lastest build (v2) doesn't
> >> produce proper Java logging output in SE mode.
> >> I need to look into this, please be patient for some time.
> >>
> >> Sorry for incovenience.
> >> -Wonseok
> >>
> >> On 1/4/07, Jon Miller <jemiller_at_uchicago.edu> wrote:
> >> >
> >> > Hi all,
> >> >
> >> > The following link states that you can configure TopLink to use
> >> > java.util.logging logging. I put the following line in my
> >> > persistence.xml,
> >> > but, I don't see a difference.
> >> >
> >> > <property name=" toplink.logging.logger" value="JavaLogger"/>
> >> >
> >> > And then modified my logging.properties file like the following. I
> also
> >> > tried just, oracle.toplink.essentials.level.
> >> >
> >> > oracle.toplink.essentials.session.level = FINEST
> >> >
> >> >
> http://www.oracle.com/technology/products/ias/toplink/jpa/resources/toplink-jpa-extensions.html#TopLinkLogging
> >> >
> >> >
> >> > Logging statements in my app that is using java.util.logging look
> like
> >> > this,
> >> >
> >> > [junit] Jan 3, 2007 5:26:04 PM
> >> > edu.uchicago.at.reservations.ReservationsService saveItem
> >> > [junit] FINE: entered
> >> >
> >> > whereas the TopLink ones are in a different format.
> >> >
> >> > [junit] [TopLink Config]: 2007.01.03
> >> > 05:26:07.760--ServerSession
> (25699763)--Connection(23971937)--Connected:
> >> > jdbc:in
> >> > etdae7:host:1433?database=ReservationsDev
> >> > [junit] User: dbo
> >> > [junit] Database: Microsoft SQL Server Version: 9.0.2047
> >> > [junit] Driver: i-net OPTA 2000 Version: 4.15.01
> >> >
> >> > Not a big deal, but, I was thinking it might be nice to just use
> >> > java.util.logging for everything. Has anyone else got this to work?
> >> >
> >> > Jon
> >> >
> >>
> >>
> >
>