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 |
|
Uses |
|
Integrates with the application server's logging |
|
(Default) Uses EclipseLink's native logger, |
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:
Logging examples
http://wiki.eclipse.org/EclipseLink/Examples/JPA/Logging
Custom logger
http://wiki.eclipse.org/EclipseLink/Examples/JPA/CustomLogger