Loading
Java Persistence API (JPA) Extensions Reference for EclipseLink, Release 2.4
  Go To Table Of Contents
Contents
 Search
Other Searches
 PDF
PDF
Comments
Comments


logging.exceptions

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.

Table 5-53 Valid Values for logging.exceptions

Value Description

true

(Default)

false




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:

Comments powered by Disqus