Gente, como faço pra "limpar o que aparece no meu console ?
Em um projeto, to usando hibernate e struts…e sempre que vou testar alguma funcionalidade e tal. o meu console fica repleto de comentários de sql e do hibernate.
Tenho a sensação q isso pode ser configurado ou no hibernate ou no log4j mas apesar de ja ter feito isso, continua aparecendo.
Alguem pode me ajudar ??
Abaixo um trecho do que aparece no meu console e que eu quero retirar.
[INFO] 14 Set 03:31:57.230 PM http-8080-1 [com.mchange.v2.c3p0.C3P0Registry]
Initializing c3p0-0.9.1.1 [built 15-March-2007 01:32:31; debug? true; trace: 10][INFO] 14 Set 03:31:57.281 PM http-8080-1 [com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource]
Initializing c3p0 pool… com.mchange.v2.c3p0.PoolBackedDataSource@f7fded08 [ connectionPoolDataSource -> com.mchange.v2.c3p0.WrapperConnectionPoolDataSource@94876c2e [ acquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, debugUnreturnedConnectionStackTraces -> false, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 1hge3c78p1iya51cs1zkw|1532fc, idleConnectionTestPeriod -> 14400, initialPoolSize -> 5, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 25200, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 75, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 5, nestedDataSource -> com.mchange.v2.c3p0.DriverManagerDataSource@acdd1bf6 [ description -> null, driverClass -> null, factoryClassLocation -> null, identityToken -> 1hge3c78p1iya51cs1zkw|1be0369, jdbcUrl -> jdbc:mysql://177.67.116.37:3306/SuperPay2?autoReconnect=true, properties -> {autoReconnect=true, user=******, password=******, autoReconnectForPools=true} ], preferredTestQuery -> select 1, propertyCycle -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> true, unreturnedConnectionTimeout -> 0, usesTraditionalReflectiveProxies -> false; userOverrides: {} ], dataSourceName -> null, factoryClassLocation -> null, identityToken -> 1hge3c78p1iya51cs1zkw|16d4b50, numHelperThreads -> 3 ][INFO] 14 Set 03:31:58.534 PM http-8080-1 [org.hibernate.dialect.Dialect]
Using dialect: org.hibernate.dialect.MySQLDialect[INFO] 14 Set 03:31:58.544 PM http-8080-1 [org.hibernate.engine.jdbc.JdbcSupportLoader]
Disabling contextual LOB creation as createClob() method threw error : java.lang.reflect.InvocationTargetException[INFO] 14 Set 03:31:58.544 PM http-8080-1 [org.hibernate.cfg.SettingsFactory]
Database ->
name : MySQL
version : 5.5.20-log
major : 5
minor : 5[INFO] 14 Set 03:31:58.544 PM http-8080-1 [org.hibernate.cfg.SettingsFactory]
Driver ->
name : MySQL-AB JDBC Driver
version : mysql-connector-java-5.1.20 ( Revision: [email removido]-20111003110438-qfydx066wsbydkbw )
major : 5
minor : 1[INFO] 14 Set 03:31:58.656 PM http-8080-1 [org.hibernate.transaction.TransactionFactoryFactory]
Using default transaction strategy (direct JDBC transactions)[INFO] 14 Set 03:31:58.658 PM http-8080-1 [org.hibernate.transaction.TransactionManagerLookupFactory]
No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)[INFO] 14 Set 03:31:58.658 PM http-8080-1 [org.hibernate.cfg.SettingsFactory]
Automatic flush during beforeCompletion(): disabled[INFO] 14 Set 03:31:58.658 PM http-8080-1 [org.hibernate.cfg.SettingsFactory]
Automatic session close at end of transaction: disabled[INFO] 14 Set 03:31:58.658 PM http-8080-1 [org.hibernate.cfg.SettingsFactory]
JDBC batch size: 15[INFO] 14 Set 03:31:58.658 PM http-8080-1 [org.hibernate.cfg.SettingsFactory]
JDBC batch updates for versioned data: disabled[INFO] 14 Set 03:31:58.659 PM http-8080-1 [org.hibernate.cfg.SettingsFactory]
Scrollable result sets: enabled[INFO] 14 Set 03:31:58.659 PM http-8080-1 [org.hibernate.cfg.SettingsFactory]
JDBC3 getGeneratedKeys(): enabled