0 Replies Latest reply on Jul 29, 2014 10:31 AM by Shelli Orton

    SQL Logging with EclipseLink

    Shelli Orton Newbie

      How do I turn on SQL logging in JBoss EAP 6.2.0 using EclipseLink 2.4.0?

       

      We are migrating from Glassfish 3 to JBoss EAP and have set our JBoss server up to use EclipseLink as the JPA provider.  The person who set our server up to use EclipseLink versus Hibernate is now on vacation and I'm not sure how that was done.  I've added the snippet below to my persistence.xml which is what was done in Glassfish but that doesn't appear to do it.  I've been looking thru the admin console options to see if there's any JPA/EclipseLink logging options, but am not seeing anything.  Can someone tell me how or point me to the correct manual/resource to do this?

       

      Thanks!

       

      <!-- log sqls executed in server.log -->            

      <property name="eclipselink.logging.logger" value="JavaLogger" />            

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

       

      (see also http://stackoverflow.com/questions/25004585/jboss-eclipselink-turn-on-sql-logging)