Author: jaz
Date: Wed May 23 11:19:42 2007
New Revision: 541008
URL:
http://svn.apache.org/viewvc?view=rev&rev=541008Log:
updated log4j configuration; disabled socket output by default (example still there); turned off blocking when the async buffer is full
Modified:
ofbiz/trunk/framework/base/config/log4j.xml
Modified: ofbiz/trunk/framework/base/config/log4j.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/config/log4j.xml?view=diff&rev=541008&r1=541007&r2=541008==============================================================================
--- ofbiz/trunk/framework/base/config/log4j.xml (original)
+++ ofbiz/trunk/framework/base/config/log4j.xml Wed May 23 11:19:42 2007
@@ -21,24 +21,28 @@
<log4j:configuration xmlns:log4j="
http://jakarta.apache.org/log4j/" debug="false">
- <!-- stdout appender -->
- <appender name="stdout" class="org.apache.log4j.ConsoleAppender">
- <param name="threshold" value="info"/>
- <layout class="org.apache.log4j.PatternLayout">
- <param name="ConversionPattern" value="%d (%t) [%24F:%-3L:%-5p]%x %m%n"/>
- </layout>
- </appender>
-
- <!-- file logging done async -->
+ <!-- async appender -->
<appender name="async" class="org.apache.log4j.AsyncAppender">
+ <param name="locationInfo" value="true"/>
+ <param name="blocking" value="false"/>
+ <param name="bufferSize" value="128"/>
+ <appender-ref ref="stdout"/>
<appender-ref ref="ofbiz-file"/>
<appender-ref ref="ofbiz-html"/>
<appender-ref ref="debug"/>
<appender-ref ref="error"/>
- <appender-ref ref="socket"/>
+ <!--<appender-ref ref="socket"/>-->
<!-- <appender-ref ref="email"/> -->
</appender>
+ <!-- stdout appender -->
+ <appender name="stdout" class="org.apache.log4j.ConsoleAppender">
+ <param name="threshold" value="info"/>
+ <layout class="org.apache.log4j.PatternLayout">
+ <param name="ConversionPattern" value="%d (%t) [%24F:%-3L:%-5p]%x %m%n"/>
+ </layout>
+ </appender>
+
<!-- ofbiz file appender -->
<appender name="ofbiz-file" class="org.apache.log4j.RollingFileAppender">
<param name="maxFileSize" value="1000KB" />
@@ -142,7 +146,6 @@
<!-- root logger -->
<root>
<priority value="all"></priority>
- <appender-ref ref="stdout"/>
<appender-ref ref="async"/>
</root>
</log4j:configuration>