Logging REST responses
We 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
(Developer) 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:
- (AIX) (Linux) (Windows) WAS_installdir/profiles/instance_name/logs/server1
- (IBM i) WAS_userdir/profiles/instance_name/logs/server1
(Developer) WCDE_installdir/wasprofiles/logs/server1