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) |
---|---|
|
(Default) Log a thread identifier. |
|
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:
Logging Examples
http://wiki.eclipse.org/EclipseLink/Examples/JPA/Logging
"Configuring WebLogic Server to Expose EclipseLink Logging" in Solutions Guide for EclispeLink