Enabling the Trace Facility in WebSphere Application Server

If you want the trace records to be reported to the WebSphere(R) Application Server console or the WebSphere Application Server log, you should enable Trace Facility in WebSphere Application Server.

To enable the Trace Facility in WebSphere Application Server, do the following:
  1. Open the WebSphere Application Server Administrative Console. From the left panel, select Troubleshooting > Logs and Trace .
  2. In the right panel, select Server Name > Diagnostic Trace. In the Diagnostic Trace Service panel, click the Configuration tab.
    1. In the Enable Trace row, select the Enable trace with the following specification box.
    2. In the Trace Specification row, input com.ibm.btt.base.TraceWAS=all=enabled.
    3. In the Trace Output row, select the File option and specify the path and name of the log file in File Name field.
    4. In the Trace Output Format row, select Basic (Compatible).

    Screen capture of the Configuration tab for the Trace Facility configuration

  3. Click Runtime tab.
    1. In Save Trace row, select the Save runtime changes to configuration as well box.
    2. In Trace Specification row, input string com.ibm.btt.base.TraceWAS=all=enabled.
    3. In the Trace Output row, select the File option and specify the path and name of the log file in File Name field.

    Screen capture of the Runtime tab for the Trace Facility configuration

Related concepts
Trace-to-WAS reporting