[Yanel-commits] rev 45835 - public/yanel/trunk/conf

michi at wyona.com michi at wyona.com
Fri Dec 4 14:19:32 CET 2009


Author: michi
Date: 2009-12-04 14:19:32 +0100 (Fri, 04 Dec 2009)
New Revision: 45835

Modified:
   public/yanel/trunk/conf/log4j.properties
Log:
log4j for access fixed

Modified: public/yanel/trunk/conf/log4j.properties
===================================================================
--- public/yanel/trunk/conf/log4j.properties	2009-12-04 13:18:34 UTC (rev 45834)
+++ public/yanel/trunk/conf/log4j.properties	2009-12-04 13:19:32 UTC (rev 45835)
@@ -10,6 +10,11 @@
 # Version of this file in order to compare with local.log4j.properties
 version.log4j.properties=2009120100
 
+
+log4j.category.Access=INFO, A2
+# Do not log Access also within rootCategory
+log4j.additivity.Access=false
+
 #log4j.rootCategory=DEBUG, A1
 #log4j.rootCategory=INFO, A1
 log4j.rootCategory=WARN, A1
@@ -18,6 +23,7 @@
 #log4j.rootCategory=LOG, A1
 
 
+# General log4j
 #log4j.appender.A1=org.apache.log4j.ConsoleAppender
 log4j.appender.A1 = org.apache.log4j.RollingFileAppender
 log4j.appender.A1.File = @LOG4J_FILE@
@@ -29,16 +35,16 @@
 log4j.appender.A1.MaxBackupIndex=7
 
 
-# See http://www.jguru.com/faq/view.jsp?EID=1311014
-log4j.category.Access=INFO, AA
-log4j.appender.AA=org.apache.log4j.RollingFileAppender
-log4j.appender.AA.File=@LOG4J_DIR@/access-cnode at CNODE_ID@.log
-log4j.appender.AA.layout=org.apache.log4j.PatternLayout
-log4j.appender.AA.layout.ConversionPattern=%-4r %d [%t] %-5p %c %x - %m%n
-log4j.appender.AA.MaxFileSize=1000KB
-log4j.appender.AA.MaxBackupIndex=7
+# Access log4j
+log4j.appender.A2=org.apache.log4j.RollingFileAppender
+log4j.appender.A2.File=@LOG4J_DIR@/access-cnode at CNODE_ID@.log
+log4j.appender.A2.layout=org.apache.log4j.PatternLayout
+log4j.appender.A2.layout.ConversionPattern=%-4r %d [%t] %-5p %c %x - %m%n
+log4j.appender.A2.MaxFileSize=1000KB
+log4j.appender.A2.MaxBackupIndex=7
 
 
+# Exceptions to the above rules
 log4j.category.org.wyona.yarep.core.Repository=INFO
 # Makes Jelly errors visible, but do not use in production, because it also generates a lot of debug messages
 #log4j.category.org.apache.commons.jelly.impl.TagScript=TRACE



More information about the Yanel-commits mailing list