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


logging.thread

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


Values

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

Table 5-59 Valid Values for logging.thread

true (Default)

true

(Default) Log a thread identifier.

false

Do not log a thread identifier



Usage

You should use this property when running multi-threaded applications. EclipseLink will include a hashcode of the thread.


Examples

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

Example 5-57 Using logging.thread in persistence.xml file

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

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

Example 5-58 Using logging.thread in a Property Map

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


See Also

For more information, see: