title: How to turn off messages from c3p0 while using Clojure jdbc
body: <p>I am using Clojure jdbc and c3p0 for connection pooling.</p>
  
  <p>Before running any query and startting of application it prints out a message as follows to the console.</p>
  
  <pre><code>Jul 11, 2016 6:22:48 PM com.mchange.v2.log.MLog 
  INFO: MLog clients using java 1.4+ standard logging.
  Jul 11, 2016 6:22:48 PM com.mchange.v2.c3p0.C3P0Registry 
  INFO: Initializing c3p0-0.9.5.2 [built 08-December-2015 22:06:04 -0800; debug? true; trace: 10]
  
  Jul 11, 2016 6:22:48 PM com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource 
  INFO: Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -&gt; 3, acquireRetryAttempts -&gt; 30, acquireRetryDelay -&gt; 1000, autoCommitOnClose -&gt; false, automaticTestTable -&gt; null, breakAfterAcquireFailure -&gt; false, checkoutTimeout -&gt; 0, connectionCustomizerClassName -&gt; null, connectionTesterClassName -&gt; com.mchange.v2.c3p0.impl.DefaultConnectionTester, contextClassLoaderSource -&gt; caller, dataSourceName -&gt; z8kflt9h1ohpn8xry5id4|663c9e7a, debugUnreturnedConnectionStackTraces -&gt; false, description -&gt; null, driverClass -&gt; org.postgresql.Driver, extensions -&gt; {}, factoryClassLocation -&gt; null, forceIgnoreUnresolvedTransactions -&gt; false, forceSynchronousCheckins -&gt; false, forceUseNamedDriverClass -&gt; false, identityToken -&gt; z8kflt9h1ohpn8xry5id4|663c9e7a, idleConnectionTestPeriod -&gt; 0, initialPoolSize -&gt; 3, jdbcUrl -&gt; jdbc:postgresql://localhost:5432/postgres, maxAdministrativeTaskTime -&gt; 0, maxConnectionAge -&gt; 0, maxIdleTime -&gt; 10800, maxIdleTimeExcessConnections -&gt; 1800, maxPoolSize -&gt; 15, maxStatements -&gt; 0, maxStatementsPerConnection -&gt; 0, minPoolSize -&gt; 3, numHelperThreads -&gt; 3, preferredTestQuery -&gt; null, privilegeSpawnedThreads -&gt; false, properties -&gt; {user=******}, propertyCycle -&gt; 0, statementCacheNumDeferredCloseThreads -&gt; 0, testConnectionOnCheckin -&gt; false, testConnectionOnCheckout -&gt; false, unreturnedConnectionTimeout -&gt; 0, userOverrides -&gt; {}, usesTraditionalReflectiveProxies -&gt; false ]
  </code></pre>
  
  <p>Is there any way to turn this off, for example while specifying the datasource?</p>
  
  <pre><code>(defn pool
    [spec]
    (let [cpds (doto (ComboPooledDataSource.)
                 (.setDriverClass (:classname spec))
                 (.setJdbcUrl (str "jdbc:" (:subprotocol spec) ":" (:subname spec)))
                 (.setUser (:user spec))
                 ;; expire excess connections after 30 minutes of inactivity:
                 (.setMaxIdleTimeExcessConnections (* 30 60))
                 ;; expire connections after 3 hours of inactivity:
                 (.setMaxIdleTime (* 3 60 60)))]
      {:datasource cpds}))
  </code></pre>
  
  <p>Also had the following in my code.</p>
  
  <pre><code>(defn -main
    "JDBC CS425 Assignment."
    [path]
    (System/setProperties
     (doto (java.util.Properties. (System/getProperties))
       (.put "com.mchange.v2.log.MLog" "com.mchange.v2.log.FallbackMLog")
       (.put "com.mchange.v2.log.FallbackMLog.DEFAULT_CUTOFF_LEVEL" "OFF")))
    ;;(check-for-tables pooled-db path)
    (run-queries))
  </code></pre>