Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Seeing SQL parameter values with GlassFish

Looks like the logging is still getting bungled from the glassfish property to the eclipselink property.

From the comments on the stackoverflow page I couldn't find an related bug, therefore, it does not appear to have been fixed. Can you enter a bug?

In the mean time, adding the following to your persistence.xml should do the trick.
<property name="eclipselink.logging.level.sql" value="FINE"/>

Cheers,
Guy
On 13/06/2013 4:13 PM, Laird Nelson wrote:
I know I've been able to make this work some time in the distant past, but no longer.

I am configuring EclipseLink logging on GlassFish.

My persistence.xml has no EclipseLink logging properties (save one; stay tuned) in it, because I am configuring logging through logging.properties.

In my logging.properties I have:

org.eclipse.persistence.level = FINE

With this, I can see SQL statements, but not parameter values.

I added this to my persistence.xml:

<properties>
  <property name="eclipselink.logging.parameters" value="true"/>
</properties>


I am using EclipseLink 2.3.2 (the version that ships with GlassFish 3.1.2.2, the current release of GlassFish).

Best,
Laird


_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users

--

Oracle
Guy Pelletier

ORACLE Canada, 45 O'Connor Street Suite 400 Ottawa, Ontario Canada K1P 1A4

Green
            Oracle Oracle is committed to developing practices and products that help protect the environment


Back to the top