2 Replies Latest reply on Feb 2, 2010 8:19 AM by Sakthivelmurugan K G

    Disabling Hibernate logs

    Sakthivelmurugan K G Newbie

      Hi,

       

      I am not sure is this the correct forum to ask this question. I am using JBPM 3.2.3.(which comes with built in hibernate 3). I have so many logs which are related to Hibernate like the one below. How to disable this?  I am not using log4j.properties. It is very strange to me. Please can anyone help me on this.

       

      010-02-02 15:37:34,735 [Thread-37] INFO  org.hibernate.connection.DriverManagerConnectionProvider  - autocommit mode: false
      2010-02-02 15:37:34,735 [Thread-37] INFO  org.hibernate.connection.DriverManagerConnectionProvider  - using driver: com.mysq
      l.jdbc.Driver at URL: jdbc:mysql://localhost/JBPM
      2010-02-02 15:37:34,735 [Thread-37] INFO  org.hibernate.connection.DriverManagerConnectionProvider  - connection properties:
      {user=cygnet, password=cygnet}
      2010-02-02 15:37:34,753 [Thread-44] INFO  org.apache.struts.util.PropertyMessageResources  - Initializing, config='org.apach
      e.struts.action.ActionResources', returnNull=true
      2010-02-02 15:37:34,819 [Thread-37] INFO  org.hibernate.cfg.SettingsFactory  - RDBMS: MySQL, version: 5.0.45-community
      2010-02-02 15:37:34,819 [Thread-37] INFO  org.hibernate.cfg.SettingsFactory  - JDBC driver: MySQL-AB JDBC Driver, version: m
      ysql-connector-java-3.1.6 ( $Date: 2004/12/09 15:57:25 $, $Revision: 1.27.4.52 $ )
      2010-02-02 15:37:34,909 [Thread-37] INFO  org.hibernate.dialect.Dialect  - Using dialect: org.hibernate.dialect.MySQLDialect
      2010-02-02 15:37:34,920 [Thread-37] INFO  org.hibernate.transaction.TransactionFactoryFactory  - Using default transaction s
      trategy (direct JDBC transactions)
      2010-02-02 15:37:34,924 [Thread-37] INFO  org.hibernate.transaction.TransactionManagerLookupFactory  - No TransactionManager
      Lookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
      2010-02-02 15:37:34,924 [Thread-37] INFO  org.hibernate.cfg.SettingsFactory  - Automatic flush during beforeCompletion(): di
      sabled
      2010-02-02 15:37:34,924 [Thread-37] INFO  org.hibernate.cfg.SettingsFactory  - Automatic session close at end of transaction
      : disabled
      2010-02-02 15:37:34,924 [Thread-37] INFO  org.hibernate.cfg.SettingsFactory  - JDBC batch size: 15
      2010-02-02 15:37:34,924 [Thread-37] INFO  org.hibernate.cfg.SettingsFactory  - JDBC batch updates for versioned data: disabl
      ed
      2010-02-02 15:37:34,942 [Thread-37] INFO  org.hibernate.cfg.SettingsFactory  - Scrollable result sets: enabled
      2010-02-02 15:37:34,942 [Thread-37] INFO  org.hibernate.cfg.SettingsFactory  - JDBC3 getGeneratedKeys(): enabled
      2010-02-02 15:37:34,942 [Thread-37] INFO  org.hibernate.cfg.SettingsFactory  - Connection release mode: auto
      2010-02-02 15:37:34,943 [Thread-37] INFO  org.hibernate.cfg.SettingsFactory  - Maximum outer join fetch depth: 2
      2010-02-02 15:37:34,944 [Thread-37] INFO  org.hibernate.cfg.SettingsFactory  - Default batch fetch size: 1
      2010-02-02 15:37:34,944 [Thread-37] INFO  org.hibernate.cfg.SettingsFactory  - Generate SQL with comments: disabled
      2010-02-02 15:37:34,944 [Thread-37] INFO  org.hibernate.cfg.SettingsFactory  - Order SQL updates by primary key: disabled
      2010-02-02 15:37:34,944 [Thread-37] INFO  org.hibernate.cfg.SettingsFactory  - Query translator: org.hibernate.hql.ast.ASTQu
      eryTranslatorFactory
      2010-02-02 15:37:34,957 [Thread-37] INFO  org.hibernate.hql.ast.ASTQueryTranslatorFactory  - Using ASTQueryTranslatorFactory
      2010-02-02 15:37:34,958 [Thread-37] INFO  org.hibernate.cfg.SettingsFactory  - Query language substitutions: {}
      2010-02-02 15:37:34,958 [Thread-37] INFO  org.hibernate.cfg.SettingsFactory  - JPA-QL strict compliance: disabled
      2010-02-02 15:37:34,958 [Thread-37] INFO  org.hibernate.cfg.SettingsFactory  - Second-level cache: enabled
      2010-02-02 15:37:34,958 [Thread-37] INFO  org.hibernate.cfg.SettingsFactory  - Query cache: disabled
      2010-02-02 15:37:34,958 [Thread-37] INFO  org.hibernate.cfg.SettingsFactory  - Cache provider: org.hibernate.cache.Hashtable

       

       

      Thanks in advance.

       

      Regards,

      Sakthi