Dashboard > iBATIS DataMapper > Home > Frequently Asked Questions > How do I Configure Logging in WebSphere
How do I Configure Logging in WebSphere
Added by Jeff Butler, last edited by Jeff Butler on Aug 11, 2005  (view change)
Labels: 
(None)


(Important Note: this information applies to iBATIS version 2.1.5 running on WebSphere 6.0)

Even though iBATIS is no longer dependant on Jakarta Commons Logging (JCL), iBATIS will use JCL if it exists in the classpath. WebSphere supplies JCL in the application server classpath, so iBATIS running on WebSphere will always use JCL.

On WebSphere, JCL provides the entry point into the WebSphere logging infrastructure. This means that iBATIS logging can be configured using the standard WebSphere administrative tools, and can be enabled/disabled on the fly.

To enable logging:

  1. Start the administrative console
  2. Navigate to Troubleshooting->Logs and Trace
  3. Select your server (usually "server1")
  4. Select "Change Log Detail Levels"
  5. Select the "Runtime" Tab
  6. Add logging strings as needed (delimited by colons):
    • com.ibatis.*=all
    • java.sql.Connection=all
    • java.sql.PreparedStatement=all
    • java.sql.ResultSet=all
    • etc.
  7. Press "OK/Apply"

Logging information will now be available in the WebSphere trace file (usually called "trace.log" in your application server logs directory).

Note that these instructions are used to enable/disable logging on the fly. If you want to permanently enable/disable logging, then make the above changes on the "Configuration" tab, rather than the "Runtime" tab.


Site running on a free Atlassian Confluence Open Source Project License granted to OSS. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.5 Build:#811 Jul 25, 2007) - Bug/feature request - Contact Administrators