config/log4j.lcf.template
changeset 1738 d8dcb2ecfd14
parent 539 57856b305e80
child 2432 d9081ec855ca
--- a/config/log4j.lcf.template	Wed Oct 01 12:34:44 2008 +0000
+++ b/config/log4j.lcf.template	Wed Oct 01 12:57:20 2008 +0000
@@ -10,7 +10,7 @@
 # * under the License. 
 # * The Original Code is Openbravo ERP. 
 # * The Initial Developer of the Original Code is Openbravo SL 
-# * All portions are Copyright (C) 2007 Openbravo SL 
+# * All portions are Copyright (C) 2007-2008 Openbravo SL 
 # * All Rights Reserved. 
 # * Contributor(s):  ______________________________________.
 # ************************************************************************
@@ -33,3 +33,43 @@
 
 # To debug an specific class
 #log4j.category.org.openbravo.erpCommon.ad_process=DEBUG
+
+#****************************************************
+# Hibernate
+#****************************************************
+log4j.appender.HB=org.apache.log4j.RollingFileAppender
+log4j.appender.HB.File=${catalina.base}/logs/openbravo_hibernate.log
+log4j.appender.HB.MaxFileSize=10000KB
+
+# R uses PatternLayout.
+log4j.appender.HB.layout=org.apache.log4j.PatternLayout
+log4j.appender.HB.layout.ConversionPattern=%d{HH:mm:ss} [%t] %-5p %c - %m%n
+
+# Keep one backup file
+log4j.appender.HB.MaxBackupIndex=1
+
+log4j.logger.org.hibernate=error, HB
+
+### log HQL query parser activity
+#log4j.logger.org.hibernate.hql.ast.AST=error, HB
+
+### log just the SQL
+log4j.logger.org.hibernate.SQL=error, HB
+
+### log JDBC bind parameters ###
+log4j.logger.org.hibernate.type=error, HB
+
+### log schema export/update ###
+log4j.logger.org.hibernate.tool.hbm2ddl=error, HB
+
+### log HQL parse trees
+log4j.logger.org.hibernate.hql=error, HB
+
+### log cache activity ###
+log4j.logger.org.hibernate.cache=error, HB
+
+### log transaction activity
+log4j.logger.org.hibernate.transaction=error, HB
+
+### log JDBC resource acquisition
+log4j.logger.org.hibernate.jdbc=error, HB