Updated log4j to print to an additional printstream
authorMartin Taal <martin.taal@openbravo.com>
Fri, 19 Dec 2008 23:15:19 +0000
changeset 2433 312945e12cac
parent 2432 d9081ec855ca
child 2434 687c0cc3f1e4
Updated log4j to print to an additional printstream
src/log4j.lcf
--- a/src/log4j.lcf	Fri Dec 19 23:14:26 2008 +0000
+++ b/src/log4j.lcf	Fri Dec 19 23:15:19 2008 +0000
@@ -15,8 +15,15 @@
 #* Contributor(s):  ______________________________________.
 #************************************************************************
 
-log4j.rootCategory=INFO, A1
-  
+# File is used by ApplyModule and other ant tasks
+
+log4j.rootCategory=INFO, A1, O1
+
+# Additional Appender used for apply modules or other cases
+log4j.appender.O1=org.openbravo.utils.OBLogAppender
+log4j.appender.O1.layout=org.apache.log4j.PatternLayout
+log4j.appender.O1.layout.ConversionPattern=%-4r [%t] %-5p %c - %m%n
+
 # A1 is set to be a ConsoleAppender. 
 log4j.appender.A1=org.apache.log4j.ConsoleAppender
   
@@ -28,3 +35,35 @@
 log4j.category.org.openbravo.translate.Translate=INFO
 log4j.category.org.openbravo.wad=INFO
 #log4j.category.org.openbravo.translate=INFO
+
+log4j.category.org=WARN
+
+#****************************************************
+#Part added for hibernate
+#****************************************************
+log4j.logger.org.hibernate=error
+
+### log HQL query parser activity 
+#log4j.logger.org.hibernate.hql.ast.AST=error
+
+### log just the SQL
+log4j.logger.org.hibernate.SQL=error
+
+### log JDBC bind parameters ###
+log4j.logger.org.hibernate.type=error
+
+### log schema export/update ###
+log4j.logger.org.hibernate.tool.hbm2ddl=error
+
+### log HQL parse trees
+log4j.logger.org.hibernate.hql=error
+
+### log cache activity ###
+log4j.logger.org.hibernate.cache=error
+
+### log transaction activity
+log4j.logger.org.hibernate.transaction=error
+
+### log JDBC resource acquisition
+log4j.logger.org.hibernate.jdbc=error
+