Skip Headers

# Configuring Logging in a CMP Application

Previous

Next

For a CMP project, you do not configure a session directly. In this case, you specify the type of logging by configuring system property `toplink.log.destination` with one of the following values:

- fully qualified file specification (for example, `C:\logs\toplink.log`)–use TopLink native logging to write log messages to the specified file.

- `JAVA`–use `java.util.logging` package to write log messages to any destination you configure in the `<JRE_HOME>``/lib/logging.properties` file.

- `SERVER`–use server logging to write log messages to the application server's log file (there is no separate TopLink log file in this case).

- `SYSOUT`–write log messages to `System.out`.

The log level for TopLink standard (default) logging can be set through the `toplink.log.level` system property.

To configure other logging options, use a `customization-class` (see "Configuring pm-properties").