WebSphere Application Server Network Deployment, Version 6.1
             Operating Systems: AIX, HP-UX, i5/OS, Linux, Solaris, Windows, z/OS

             Personalize the table of contents and search results

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 WebSphere Application Server.

About this task

[AIX HP-UX Linux Solaris Windows] [i5/OS] If you want to enable trace for the WSIF API within WebSphere Application Server, and have trace, stdout and stderr for the application server written to a well-known location, see Enabling tracing and logging.

[z/OS] If you want to enable trace for the WSIF API within WebSphere Application Server, and have trace, stdout and stderr for the application server written to a well-known location, see Setting up component trace (CTRACE).

To trace the WSIF API, you need to specify the following trace string:

wsif=all=enabled

To enable the WSIF SimpleLog utility, through which you can run trace when using WSIF outside of WebSphere Application Server, complete the following steps:

Procedure

  1. 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
    
  2. 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
    
  3. 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.



In this information ...


IBM Redbooks, demos, education, and more


Use IBM Suggests to retrieve related content from ibm.com and beyond, identified for your convenience.

This feature requires Internet access.

IBM Suggests
Task topic    

Terms of Use | Feedback

Last updated: Feb 25, 2009 9:32:38 AM CST
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=/com.ibm.websphere.nd.multiplatform.doc/info/ae/ae/twsf_tracelog.html