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


logging.file

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


Values

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.



Usage

This property applies when used in a Java SE environment.


Examples

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: