Trace and logging for WSIF
The Web Services Invocation Framework (WSIF) offers trace points at the opening and closing of ports, the invocation of services, and the responses from services. WSIF also includes a SimpleLog utility that can run trace when you are using WSIF outside of WAS.
Overview
To enable trace for the WSIF API within WAS, and have trace, stdout and stderr for the appserver written to a well-known location, see Enabling tracing and logging.
To trace the WSIF API, we need to specify the following trace string:
wsif=all=enabledTo enable the WSIF SimpleLog utility, through which you can run trace when using WSIF outside of WAS, complete the following steps:
Procedure
- Create a file named commons-logging.properties with the following contents:
org.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.LogFactoryImpl org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog
- Create a file named simplelog.properties with the following contents:
org.apache.commons.logging.simplelog.defaultlog=trace org.apache.commons.logging.simplelog.showShortLogname=true org.apache.commons.logging.simplelog.showdatetime=true
- Put both these files, and the commons-logging.jar file, on the class path.
Results
The SimpleLog utility writes trace to the System.err file.
Related tasks
Installing and managing WSIF
Related Reference
WSIF (Web Services Invocation Framework) messages