Use eclipselink.logging.level to specify a specific logging level and control the amount and detail EclipseLink writes to the log.
Values
Table 5-55 describes this persistence property's values.
Table 5-55 Valid Values for logging.level
| Value | Description | 
|---|---|
| 
 
  | 
 Disables logging. You may want to use   | 
| 
 
  | 
 Logs exceptions indicating that EclipseLink cannot continue, as well as any exceptions generated during login. This includes a stack trace.  | 
| 
 
  | 
 Logs exceptions that do not force EclipseLink to stop, including all exceptions not logged with   | 
| 
 
  | 
 (Default) Logs the login/logout per sever session, including the user name. After acquiring the session, detailed information is logged.  | 
| 
 
  | 
 Logs only login, JDBC connection, and database information. You may want to use this log level at deployment time.  | 
| 
 
  | 
 Logs all SQL You may want to use this log level during debugging and testing, but not at production time.  | 
| 
 
  | 
 Similar to   | 
| 
 
  | 
 Similar to   | 
| 
 
  | 
 Logs at the same level as   | 
Usage
Examples
Example 5-49 shows how to use this property in the peristence.xml file.
Example 5-49 Using logging.level in persistence.xml file
<property name="eclipselink.logging.level" value="OFF" />
Example 5-50 shows how to use this property in a property map.
Example 5-50 Using logging.level in a Property Map
import java.util.logging.Level; import org.eclipse.persistence.config.PersistenceUnitProperties; propertiesMap.put(PersistenceUnitProperties.LOGGING_LEVEL, Level.OFF);
See Also
For more information, see:
"Configuring WebLogic Server to Expose EclipseLink Logging" in Solutions Guide for EclispeLink
Logging Examples
http://wiki.eclipse.org/EclipseLink/Examples/JPA/Logging