How do I get rid of the C3p0 logging on the console or at least how can I redirect it to a file?
Code:
[java] Initializing c3p0 pool... com.mchange.v2.c3p0.PoolBackedDataSource@a282af [ connectionPoolDataSource -> com.mchange.v2.c3p0.WrapperConnectionPoolDataSource@69751d [ acquireIncrement -> 1, autoCommitOnClose -> false, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, idleConnectionTestPeriod -> 100, initialPoolSize -> 10, maxIdleTime -> 100, maxPoolSize -> 100, maxStatements -> 0, minPoolSize -> 10, nestedDataSource -> com.mchange.v2.c3p0.DriverManagerDataSource@9f9e5e [ description -> null, driverClass -> null, factoryClassLocation -> null, jdbcUrl -> jdbc:postgresql://192.168.1.10:5432/db_archive, properties -> {user=paul, password=mypasswd} ] , propertyCycle -> 300, testConnectionOnCheckout -> false ] , factoryClassLocation -> null, numHelperThreads -> 3 ]
I've tried to change the logging level of different options in log4j.properties for hibernate but this one above remains.
It's ennoying when I'm running my JUnit tests.
Thanks.