Java Persistence API (JPA) Extensions Reference for EclipseLink, Release 2.4
  Go To Table Of Contents


Use eclipselink.logging.file to specify a file location in which to output the log instead of the standard out.


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

Table 5-54 Valid Values for logging.file

Value Description

directory name

A string location to a directory in which you have write access. The location may be relative to your current working directory or an absolute location.


This property applies when used in a Java SE environment.


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

Example 5-47 Using logging.file in persistence.xml file

<property name="eclipselink.logging.file" value="C:\myout\" />

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

Example 5-48 Using logging.file in a Property Map

import org.eclipse.persistence.config.PersistenceUnitProperties;
propertiesMap.put(PersistenceUnitProperties.LOGGING_FILE, "C:\myout\");

See Also

For more information, see: