title: logging connection pooling for org.apache.commons.dbcp.BasicDataSource with spring
body: <p>I am trying to log connection pooling for <code>org.apache.commons.dbcp.BasicDataSource</code> using log4j</p>
  
  <p>I am using spring framework for dao layer injection.</p>
  
  <p>When I saw code inside <code>org.apache.commons.dbcp.BasicDataSource</code>, Logger  is not used .So it seems impossible to log pooling message for me.</p>
  
  <p>But again I saw this link 
  <a href="http://forum.springsource.org/showthread.php?38306-Connection-Pooling-debug-info" rel="noreferrer">http://forum.springsource.org/showthread.php?38306-Connection-Pooling-debug-info</a>.<br>
  Some people were saying to put 
  <code>log4j.category.org.apache.dbcp=DEBUG</code>. But I could not find the right answer.<br>
  So my question is, can connection pooling log using log4j for <code>org.apache.commons.dbcp.BasicDataSource</code>?</p>