config/log4j.lcf.template
changeset 2432 d9081ec855ca
parent 1738 d8dcb2ecfd14
child 4822 00480773b8bf
--- a/config/log4j.lcf.template	Fri Dec 19 23:08:17 2008 +0000
+++ b/config/log4j.lcf.template	Fri Dec 19 23:14:26 2008 +0000
@@ -15,7 +15,16 @@
 # * Contributor(s):  ______________________________________.
 # ************************************************************************
 
-log4j.rootCategory=WARN, R
+log4j.rootCategory=INFO, R, O1
+
+# Set our global levels
+log4j.category.org=WARN
+log4j.category.org.openbravo=INFO
+
+# 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
 
 log4j.appender.R=org.apache.log4j.RollingFileAppender
 log4j.appender.R.File=${catalina.base}/logs/openbravo.log
@@ -29,7 +38,6 @@
 log4j.appender.R.MaxBackupIndex=1
 
 log4j.category.reloadXml=ERROR
-log4j.category.org=WARN
 
 # To debug an specific class
 #log4j.category.org.openbravo.erpCommon.ad_process=DEBUG