Docs » Components » Objectstores » Jdo
Sometimes you just need to see what is going on. There are various ways in which logging can be enabled, here are some ideas.
Modify WEB-INF/logging.properties (a log4j config file)
As per the DN logging page
Configure log4jdbc JDBC rather than the vanilla driver (see WEB-INF/persistor_datanucleus.properties) and configure log4j logging (see WEB-INF/logging.properties).
There are examples of both in the quickstart archetype.
Add ;sqllog=3 to the end of the JDBC URL.
In postgresql\9.2\data\postgresql.conf:
log_statement = 'all'
Will then log to postgresql\9.2\data\pg_log directory.
Note that you must restart the service for this to be picked up.
Use the excellent SQL Profiler tool.