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


logging.logger

Use eclipselink.logging.logger to define the type of logger to use.


Values

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

Table 5-56 Valid Values for logging.logger

Value Description

Custom logger

Fully qualified class name of a custom logger which implements org.eclipse.persistence.logging.SessionLog

JavaLogger

Uses java.util.logging

ServerLogger

Integrates with the application server's logging

DefaultLogger

(Default) Uses EclipseLink's native logger, DefaultSessionLog



Examples

Example 5-51 Using logging.logger in persistence.xml

<property name="eclipselink.logging.logger" value="JavaLogger"/>

Example 5-52 Using logging.logger in Property Map

import org.eclipse.persistence.config.PersistenceUnitProperties;
propertiesMap.put(PersistenceUnitProperties.LOGGING_LOGGER, "acme.loggers.MyCustomLogger" />


See Also

For more information, see: