title: Disable Logging in Hibernate [JBOSS Environment]
body: <p>I have used one jar file, within which I'm using hibernate. There I have a log4j properties file configured for its WARN,FATAL level log, but I'm still getting all the log, because of which performance is getting down.
  I`m new to hibernate please let me know what should I do.
  Below I have provided my log4j and hbm.cfg.xml file.</p>
  
  <p>I`m calling the JAR file from a web application.</p>
  
  <p>log4j.properties:</p>
  
  <pre><code># Root logger option
  log4j.rootLogger=WARN, file, stdout
  
  
  # Direct log messages to a log file
  log4j.appender.file=org.apache.log4j.RollingFileAppender
  
  #Redirect to Tomcat logs folder
  #log4j.appender.file.File=${catalina.home}//logs//logging.log
  
  log4j.appender.file.File=/home/jboss/SSS_DI_error.log
  
  #log4j.appender.file.File=C:\\logigng.log
  log4j.appender.file.MaxFileSize=30MB
  log4j.appender.file.MaxBackupIndex=10
  log4j.appender.file.layout=org.apache.log4j.PatternLayout
  log4j.appender.file.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n
  
  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{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n
  
  log4j.logger.org.hibernate=FATAL
  </code></pre>
  
  <p>hbm.cfg.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE hibernate-configuration PUBLIC
      "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
      "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"&gt;
  &lt;hibernate-configuration&gt;
      &lt;session-factory&gt;
          &lt;property name="hibernate.validator.apply_to_ddl"&gt;false&lt;/property&gt; 
          &lt;property name="hibernate.validator.autoregister_listeners"&gt;false&lt;/property&gt;
          &lt;property name="hbm2ddl.auto"&gt;update&lt;/property&gt; 
           &lt;property name="hibernate.show_sql"&gt;false&lt;/property&gt;
          &lt;mapping class="com.integra.plugin.onlineEnrol.beans.EnrollmentDetails"/&gt;
          &lt;mapping class="com.integra.plugin.onlineEnrol.beans.CustomerIdentificationDetails"/&gt;
          &lt;mapping class="com.integra.plugin.onlineEnrol.beans.DedupKeyDetails"/&gt;
          &lt;mapping class="com.integra.plugin.onlineEnrol.beans.EnrollmentStatus"/&gt;
      &lt;/session-factory&gt; 
  &lt;/hibernate-configuration&gt;
  </code></pre>