Differences

This shows you the differences between two versions of the page.

Link to this comparison view

openjpa_logging_in_karaf [2015/07/24 14:06]
openjpa_logging_in_karaf [2021/04/05 11:23] (current)
Line 1: Line 1:
 +====== OpenJPA Logging in Karaf ======
  
 +Add the following property in ''persistence.xml'':
 +
 +  <property name="openjpa.Log" value="slf4j" />
 +
 +Add the following line to the ''org.ops4j.pax.logging.cfg'':
 +
 +  log4j.logger.openjpa.jdbc.SQL=TRACE
 +
 +Adjust the log level for the logger to your needs.
 +
 +{{tag>karaf}}