title: Unable to disable Hibernate log messages
body: <p>I'm using Hibernate for a personal project.
  In my project, I have these directory:</p>
  
  <p>+ conf<br>
  <code></code> <code></code> <code></code> log4j.properties<br>
  + bin<br>
  <code></code> <code></code> <code></code><em>my classes</em></p>
  
  <p>Using Windows console, I go to project directory (the parent of bin and conf) and I start the application with a command like this:  </p>
  
  <p><code>java -cp conf;lib/lib1.jar;lib/lib2.jar;[etc] com.moc.Main</code></p>
  
  <p>My log4j.properties file is this (taken from an hibernate example):</p>
  
  <pre>
  log4j.appender.stdout=org.apache.log4j.ConsoleAppender
  log4j.appender.stdout.Target=System.out
  log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
  log4j.appender.stdout.layout.ConversionPattern=%d - %m%n
  
  log4j.rootLogger=info, stdout
  
  log4j.logger.org.hibernate=error
  log4j.logger.org.hibernate.tool.hbm2ddl=error
  log4j.logger.org.hibernate.hql.ast.QueryTranslatorImpl=error
  log4j.logger.org.hibernate.hql.ast.HqlSqlWalker=error
  log4j.logger.org.hibernate.hql.ast.SqlGenerator=error
  log4j.logger.org.hibernate.hql.ast.AST=error
  </pre>
  
  <p>On application start, this is the output:</p>
  
  <pre>
  2010-11-06 19:00:56,376 - Logger.getRootLogger().info() statement
  12 [main] INFO org.hibernate.cfg.Environment - Hibernate 3.5.3-Final
  13 [main] INFO org.hibernate.cfg.Environment - hibernate.properties not found
  16 [main] INFO org.hibernate.cfg.Environment - Bytecode provider name : javassist
  20 [main] INFO org.hibernate.cfg.Environment - using JDK 1.4 java.sql.Timestamp handling
  108 [main] INFO org.hibernate.cfg.Configuration - configuring from resource: com/moc/hibernate.cfg.xml
  108 [main] INFO org.hibernate.cfg.Configuration - Configuration resource: com/moc/hibernate.cfg.xml
  124 [main] INFO org.hibernate.cfg.Configuration - Reading mappings from file: conf\hiber\Customer.hbm.xml
  .
  .
  .
  and so on
  .
  .
  .
  795 [main] INFO org.hibernate.impl.SessionFactoryImpl - closing
  795 [main] INFO org.hibernate.connection.DriverManagerConnectionProvider - cleaning up connection pool: jdbc:mysql://localhost/mydb
  </pre>
  
  <p>The color of Hibernate log lines is red, my log lines are black.</p>
  
  <p>Why I still see INFO output from Hibernate? What am I doing wrong?</p>