Debugging – using GlassFish 3.0 1 and NetBeans 6.9 JPA 2.0 for 1 (recording and tracking)

I'm in GlassFish v3 0.1 and NetBeans 6.9 JPA 2.0 (eclipse link provider) is used in 1, and queries and other logging information cannot be viewed from JPA 2.0 In essence, I want to be able to see all SQL statements and other related debugging information generated by JPA

Has anyone successfully configured logging to provide such feedback? I've tried a few things that didn't help

Any help would be appreciated

Thank you.

Solution

The trick in the end is:

<property name="eclipselink.logging.logger"
     value="org.eclipse.persistence.logging.DefaultSessionLog"/>

Combined with your recommended label:

<property name="eclipselink.logging.level" value="FINE" />

This lets me see the relevant JPA logs in the NetBeans output window This also works in eclipse The output is sent to the console window and mixed with the output of the server, which is exactly what I want

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>