Logging REST responses
You can log REST responses after requests are
made.
Procedure
- Open the wc-attribute-masking.xml file
for editing:
- workspace_dir/WC/xml/config/wc-attribute-masking.xml
- workspace_dir/wc/xml/config/wc-attribute-masking.xml
- Find the following line:
<wc:MaskedAttribute compareType="starts" name="outbound"/>
- Replace it with the following line, which comments out
the line by adding
<!--
and-->
blocks around it:<!-- wc:MaskedAttribute compareType="starts" name="outbound"/-->
- Restart the server.
-
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:- WAS_installdir/profiles/instance_name/logs/server1
- WAS_userdir/profiles/instance_name/logs/server1
- WCDE_installdir/wasprofiles/logs/server1