Recent Posts

RSS Feeds

logging SQL from JBoss 3.2.x


To get JBoss 3.2.x to log SQL I did the following

Add this to the log4j.xml file in my server's conf directory

  <category name="org.jboss.ejb.plugins.cmp.jdbc">
     <priority value="DEBUG"/>
  </category>

Changed the threashold for logging to the console to 'DEBUG', like this.

      <param name="Threshold" value="DEBUG"/>

In the appender named 'Console' near the top of the log4j.xml file for me.

Permalink     1 Comment



Comments:

[Trackback] Edit the log4j.xml in the conf directory as shown below to turn on SQL debugging of the JDBC CMP plugin.

/apps/jboss/server/default/conf :->diff -c log4j.xml~ log4j.xml
*** log4j.xml~ Mon Sep 30 18:09:27 2002
--- log4j.xml Tue Apr 4 20:41:18 ...

Posted by betweenGo on April 04, 2006 at 08:29 PM MDT #

Post a Comment:
  • HTML Syntax: Allowed