test-persistence.xml file use did not see to provide anything more than SERVERE level logging from eclipselink. I had tried setting the property <property name="eclipselink.logging.logger" value="DefaultLogger"/>
to no avail. I also set this value to
JavaLogger without results. I finally stumbled across an answer while looking into changing the embedded glassfish http port - and that is to use the following value:<property name="eclipselink.logging.logger" value="org.eclipse.persistence.logging.DefaultSessionLog"/>
This allows me to see the SQL statements (assuming your set the other log values) in both Eclipse and through the maven command line test execution.

No comments:
Post a Comment