Java Persistence API (JPA) Extensions Reference for EclipseLink, Release 2.5
  Go To Table Of Contents
 Search
 PDFComments
Comments


logging.session

Use eclipselink.logging.session to specify if EclipseLink should include session identifier in each log message.


Values

Table 5-58 describes this persistence property's values.

Table 5-58 Valid Values for logging.session

Value Description

true

(Default) Log a session identifier.

false

Do not log a session identifier



Usage

This setting is applicable to messages that require a database connection such as SQL and the transaction information to determine on which underlying session (if any) the message was sent.


Examples

Example 5-55 shows how to use this property in the peristence.xml file.

Example 5-55 Using logging.session in persistence.xml file

<property name="eclipselink.logging.session" value="false" />

Example 5-56 shows how to use this property in a property map.

Example 5-56 Using logging.session in a Property Map

import org.eclipse.persistence.config.PersistenceUnitProperties;propertiesMap.put(PersistenceUnitProperties.LOGGING_SESSION, "false");


See Also

For more information, see: