Skip Headers

# Log Level

Previous

Next

You can control the amount and detail of log output by configuring the log level (in ascending order of information) in the following way:

- `SEVERE`–Logs exceptions indicating TopLink cannot continue, as well as any exceptions generated during login. This includes a stack trace.

- `WARNING`–Logs exceptions that do not force TopLink to stop, including all exceptions not logged with severe level. This does not include a stack trace.

- `INFO` (default)–Logs the login/logout per server session, including the user name. After acquiring the session, detailed information is logged.

- `CONFIG`–Logs only login, JDBC connection, and database information.

- `FINE`–Logs SQL (including thread information).

- `FINER`–Similar to warning. Includes stack trace.

- `FINEST`–Includes additional low level information

- `ALL`–Logs everything.

By default, TopLink logs at the `oracle.toplink.logging.SessionLog.INFO` level so that some information is logged by default.

At run time, set the log level using `Session` method `setLogLevel`, passing in one of the log level constants provided by `oracle.toplink.logging.SessionLog`.