Use eclipselink.logging.exceptions
to specify if exceptions are logged when the are thrown, before returning the exception to the calling application.
Values
Table 5-53 describes this persistence property's values.
Usage
Using this property ensures that all exceptions are logged and not masked by the application code.
Examples
Example 5-45 shows how to use this property in the peristence.xml
file.
Example 5-45 Using logging.exceptions in persistence.xml file
<property name="eclipselink.logging.exceptions" value="true" />
Example 5-46 shows how to use this property in a property map.
Example 5-46 Using logging.exceptions in a Property Map
import org.eclipse.persistence.config.PersistenceUnitProperties;propertiesMap.put(PersistenceUnitProperties.LOGGING_EXCEPTIONS, "true");
See Also
For more information, see:
Logging Examples
http://wiki.eclipse.org/EclipseLink/Examples/JPA/Logging
"Configuring WebLogic Server to Expose EclipseLink Logging" in Solutions Guide for EclispeLink