System event logging


Message logging

Informational A condition worth noting but does not require the user to perform an action.
Warning An abnormal condition has been detected. The user may have to take action. However, WebSphere Portal code is able to handle the condition without failing.
Error A serious failure in the execution of the application that requires further action.

Messages for WebSphere Portal are logged in the following files:

Located in:

WP_PROFILE/logs/WebSphere_Portal


Trace logging

WebSphere Portal provides the logging of debugging messages called traces. These traces are useful for fixing problems. However, to save system resources, they are switched off by default.

Traces can be set for different durations:

Temporary

Traces can be set for a temporary period by using the administration portlet Enable Tracing or the IBM WAS administrative console. To set traces by using the portlet...

Administration | Portal Analysis | Enable Tracing

.and set the trace string in field...

Append these trace settings

For example:

com.ibm.wps.command.credentialvault.*=finest

Restarting WebSphere Portal will remove traces that were set by using the Enable Tracing Administration portlet.

To disable tracing, do either of the following:

Extended

To enable trace settings for a longer period of time, that is, for more than one session, switch them on in the WAS configuration. Proceed by the following steps:

Servers | Server Types | WebSphere application servers application server | Troubleshooting | Change Log Detail Levels

Specify the required trace settings. For example, this can be com.ibm.wps.command.credentialvault.*=finest

Restart WebSphere Portal.

To disable tracing, specify tracestring, *=info, and restart WebSphere Portal.


Change the log file name and location

You can change the locations of the log files by configuring them in the WAS administrative console. Select Troubleshooting -> Logs and Trace -> server_name and select the logger type that you want to change. In the configuration dialog change the path for the log file as required. For a description of the available types of log files refer to the WAS information center.


Change the language used in the log file

By default, information in the log file is written in the language that was used for the WebSphere Portal installation. However, because WebSphere Portal supports a number of languages, you can choose to have the log file information written in a language other than that used during installation.

To change the language used for the log file, edit the file log.properties. This file is located in the following WebSphere Portal directory:

.and add the following line...

...where xxis the two-letter abbreviation for the locale.

For example, to have log information generated in English, you would add the following line:


Reference: Log file format

If the logs are written to the log file of WebSphere Portal and not redirected to the logging facility WAS, the log file consists of a sequence log records that are separated by blank lines.

The log records have the following format:

Where:

Traces are written only if the specific tracing facility is enabled; all other messages are written unconditionally.

The system locale is part of the general internationalization features of WebSphere Portal and can be configured via LocalizerService. For more information refer to the topics about Setting service configuration properties and about the Portal configuration services.

The following is an example of a log record:

2011.05.16 13:36:14.449 W com.ibm.wps.services.datastore.DataStoreServiceImpl init 0000003a
DSTO0063W: The transaction isolation level is not set to READ_COMMITTED.
 
The current value is TRANSACTION_REPEATABLE_READ.


Parent

Logging and tracing


+

Search Tips   |   Advanced Search