Victor
Victor

Reputation: 17077

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"/>

Upvotes: 1

Views: 783

Answers (2)

Rick
Rick

Reputation: 3840

-Dopenjpa.Log=DefaultLevel=WARN,Runtime=INFO,Tool=INFO,SQL=TRACE

It can also be set as a JVM property.

Upvotes: 2

D.R.
D.R.

Reputation: 21194

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

Upvotes: 2

Related Questions