Logging REST responses

We can log REST responses after requests are made.


Procedure

  1. Open the wc-attribute-masking.xml file for editing:

  2. Find the following line:

      <wc:MaskedAttribute compareType="starts" name="outbound"/> 

  3. Replace it with the following line, which comments out the line by adding <!-- and --> blocks around it:

      <!-- wc:MaskedAttribute compareType="starts" name="outbound"/--> 

  4. Restart the server.

  5. Enable the trace for REST features by specifying the following trace string in the WebSphere Application Server administration console:

      "com.ibm.commerce.foundation.rest.providers.*=all"

    The log file is in the following directory: