Search code examples
openjpa

How to turn on JPA logging


To turn on JPA logging as per the link here

This needs to be done where? in persistence.xml?

<property name="openjpa.Log" value="DefaultLevel=WARN, Runtime=INFO, Tool=INFO, SQL=TRACE"/>

Solution

  • This needs to be done in the persistence.xml, yes.