Author: jacopoc
Date: Thu Apr 5 13:33:15 2012
New Revision: 1309850
URL:
http://svn.apache.org/viewvc?rev=1309850&view=revLog:
Applied fix from trunk for revision: 1308355
===
Set log levels for Freemarker (to disable all log messages under warning) to resolve performance issue in newer releases of freemarker.
Modified:
ofbiz/branches/release10.04/ (props changed)
ofbiz/branches/release10.04/framework/base/config/log4j.xml
Propchange: ofbiz/branches/release10.04/
------------------------------------------------------------------------------
Merged /ofbiz/trunk:r1308355
Modified: ofbiz/branches/release10.04/framework/base/config/log4j.xml
URL:
http://svn.apache.org/viewvc/ofbiz/branches/release10.04/framework/base/config/log4j.xml?rev=1309850&r1=1309849&r2=1309850&view=diff==============================================================================
--- ofbiz/branches/release10.04/framework/base/config/log4j.xml (original)
+++ ofbiz/branches/release10.04/framework/base/config/log4j.xml Thu Apr 5 13:33:15 2012
@@ -137,6 +137,16 @@
</layout>
</appender>
+ <appender name="freemarker-log" class="org.apache.log4j.RollingFileAppender">
+ <param name="maxFileSize" value="5000KB"/>
+ <param name="maxBackupIndex" value="10"/>
+ <param name="File" value="runtime/logs/freemarker.log"/>
+ <param name="Append" value="false"/>
+ <layout class="org.apache.log4j.PatternLayout">
+ <param name="ConversionPattern" value="%d (%t) [%24F:%-3L:%-5p]%x %m%n"/>
+ </layout>
+ </appender>
+
<category name="org.ofbiz.base.converter.Converters">
<priority value="warn"/>
</category>
@@ -180,6 +190,11 @@
<appender-ref ref="fop-log"/>
</category>
+ <category name="freemarker">
+ <priority value="warn"/>
+ <appender-ref ref="freemarker-log"/>
+ </category>
+
<!-- root logger -->
<root>
<priority value="all"></priority>