Logging and tracing in WebSphere Application Server

To turn on logging and tracing for IMS TM resource adapter information in WebSphere Application Server, set the trace output to a file or the memory buffer, and specify the log level for the packages that contain IMS TM resource adapter information.

About this task

To set controls for logging and tracing IMS TM resource adapter information:

Procedure

  1. On the welcome page of WebSphere Application Server administrative console, expand Troubleshooting, and click Logs and Trace to open the Logging and Tracing page.
  2. On the Logging and Tracing page, click the server that you want to trace (for example, server1), and click Diagnostic Trace.
    The Diagnostic trace service page opens.
  3. On the Configuration tab, set Trace Ouput to Memory Buffer or File
    Tips:
    • Changes made in the Configuration tab persist after the server restarts. To temporarily change the trace level, make the changes in the Runtime tab.
    • Trace information are events at the fine, finer and finest levels, and can be written only to the trace log. For differences among the different log levels, see Log level settings.
  4. If you select File to store trace output, you can accept the default name and location of the trace output file or you can modify it. To modify the default name and location, enter a different name and location of the file in the File Name field.
  5. Click OK.
  6. On the Logging and Tracing page, click Change Log Detail Levels.
    The Change Log Detail Levels page displays.
  7. To enable logging and tracing for the IMS TM resource adapter:
    1. Under General Properties, click Components.
    2. Enter the following string in the text box:
      *=info: com.ibm.j2ca.RAIMSTM=finest
      
    You can combine the string with others to enable tracing in other components.
  8. Click OK, If you are making changes on the Configuration tab, click Save at the top of the page to save the changes to the master configuration.
  9. Run your Java™ application and then examine the trace file.