Sun Java System Application Server Platform Edition 9 Developer's Guide

Setting the Logging Level

One of the default persistence provider's database properties that you can set in the persistence.xml file is toplink.logging.level. For example, setting the logging level to FINE or higher logs all SQL statements. For details about this property, see Extensions for Logging.

You can also set the logging level globally in the Application Server in any of the following ways:

A logging level set in the persistence.xml file takes precedence over the global logging level.