title: How to log JDBC connection activity?
body: <p>How can I see when my pooling library (C3P0) is creating and closing JDBC connections?</p>
  
  <p>Note: I have done research on this and already found a solution. I'm posting it here so that it may be useful to others and I can refer back to it in case I forget it in future. </p>
  
  <p>Other approaches/answers are welcome.</p>