Setting the Java logging level on WebSphere Application Server

In the WebSphere® Application Server administration console, you can activate the log for the execution unit (XU) and other execution components.

About this task

WebSphere Application Server supports the Java logging service to log the activity of the execution stack.

You set the log properties from the WebSphere Application Server administration console in the same way for all components.

Procedure

  1. Activate the XU by executing a ruleset.
  2. Open the WebSphere Application Server administration console.
  3. Select Troubleshooting > Logs and trace > SamplesServer > Change log detail levels.
  4. Expand the list of Components and Groups, click com.ibm.rules.res.execution, and select Message and Trace Levels.

    You can use the com.ibm.rules.res.execution logger to log messages of level SEVERE or above only.

    For example, com.ibm.rules.res.execution=all

    The Change log detail levels panel shows that the execution logging process is set to all
  5. Save the configuration and restart the application server.

Results

With a default WebSphere Application Server installation, the log messages are saved to the trace.log file in the logging directory that is dedicated to the server.

With a default WebSphere Application Server on z/OS installation, the log messages are saved to the SYSOUT and SYSPRINT job output elements in the Servant address space where rule execution takes place.