svn commit: r603107 - /ofbiz/trunk/framework/base/config/log4j.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r603107 - /ofbiz/trunk/framework/base/config/log4j.xml

adrianc
Author: adrianc
Date: Mon Dec 10 16:57:15 2007
New Revision: 603107

URL: http://svn.apache.org/viewvc?rev=603107&view=rev
Log:
Created a fop log4j logger because the root logger setting of "all" was bogging down fop rendering.

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?rev=603107&r1=603106&r2=603107&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/config/log4j.xml (original)
+++ ofbiz/trunk/framework/base/config/log4j.xml Mon Dec 10 16:57:15 2007
@@ -126,6 +126,17 @@
         </layout>
     </appender>
 
+    <!-- special fop log -->
+    <appender name="fop-log" class="org.apache.log4j.RollingFileAppender">
+        <param name="maxFileSize" value="5000KB" />
+        <param name="maxBackupIndex" value="10" />
+        <param name="File" value="runtime/logs/fop.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>
+
     <!-- log4j category -->
     <category name="org.apache.log4j">
         <priority value="warn"/>
@@ -141,6 +152,12 @@
     <category name="org.apache.geronimo.transaction">
         <priority value="warn"/>
         <appender-ref ref="minerva-log"/>
+    </category>
+
+    <!-- fop rendering logging -->
+    <category name="org.apache.fop">
+        <priority value="info"/>
+        <appender-ref ref="fop-log"/>
     </category>
 
     <!-- root logger -->