title: How to I enable c3p0 logging within my hibernate class
body: <p>I am using Java 8, Hibernate 4.3.11 and c3p0 9.2.1.</p>
  
  <p>I define all my c3p0 properties from within my hibernate config class</p>
  
  <p>e.g</p>
  
  <pre><code>  Configuration config = new org.hibernate.cfg.Configuration();
    config.setProperty("hibernate.c3p0.maxStatementsPerConnection","50");
  </code></pre>
  
  <p>this works great because it means everything works the same on different platforms (Mac, Windows, Linux, Docker etc)</p>
  
  <p>But I could not get any c3p0 debugging output, I had some success by adding</p>
  
  <pre><code>-Dcom.mchange.v2.log.MLog=com.mchange.v2.log.jdk14logging.Jdk14MLog
  </code></pre>
  
  <p>but using  </p>
  
  <pre><code>config.setProperty("hibernate.c3p0.com.mchange.v2.log.MLog","com.mchange.v2.log.jdk14logging.Jdk14MLog");
  </code></pre>
  
  <p>instead has no effect.</p>
  
  <p>Is it possible because adding as a system properties would require modification to build scripts for all platforms (we provided proper installers not just a jar file).</p>