forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cross...@apache.org
Subject svn commit: r289864 - in /forrest/trunk/main/webapp/WEB-INF: logkit.xconf xconf/forrest-core.xconf
Date Sat, 17 Sep 2005 23:56:51 GMT
Author: crossley
Date: Sat Sep 17 16:56:46 2005
New Revision: 289864

URL: http://svn.apache.org/viewcvs?rev=289864&view=rev
Log:
Enable everything about the linkrewriter to be logged separately.

Modified:
    forrest/trunk/main/webapp/WEB-INF/logkit.xconf
    forrest/trunk/main/webapp/WEB-INF/xconf/forrest-core.xconf

Modified: forrest/trunk/main/webapp/WEB-INF/logkit.xconf
URL: http://svn.apache.org/viewcvs/forrest/trunk/main/webapp/WEB-INF/logkit.xconf?rev=289864&r1=289863&r2=289864&view=diff
==============================================================================
--- forrest/trunk/main/webapp/WEB-INF/logkit.xconf (original)
+++ forrest/trunk/main/webapp/WEB-INF/logkit.xconf Sat Sep 17 16:56:46 2005
@@ -60,7 +60,7 @@
     <cocoon id="linkrewriter">
       <filename>${context-root}/WEB-INF/logs/linkrewriter.log</filename>
       <format type="cocoon">
-        %7.7{priority} (%{uri}): %{message}\n%{throwable}
+        %7.7{priority} [%{category}] (%{uri}): %{message}\n%{throwable}
       </format>
       <append>false</append>
     </cocoon>
@@ -189,8 +189,13 @@
         <log-target id-ref="error"/>
       </category>
 
+      <category name="modules.mapper.link" log-level="INFO">
+        <log-target id-ref="linkrewriter"/>
+      </category>
+
       <category name="modules.mapper.lm" log-level="INFO">
         <log-target id-ref="locationmap"/>
+        <log-target id-ref="linkrewriter"/>
       </category>
 
       <log-target id-ref="core"/>

Modified: forrest/trunk/main/webapp/WEB-INF/xconf/forrest-core.xconf
URL: http://svn.apache.org/viewcvs/forrest/trunk/main/webapp/WEB-INF/xconf/forrest-core.xconf?rev=289864&r1=289863&r2=289864&view=diff
==============================================================================
--- forrest/trunk/main/webapp/WEB-INF/xconf/forrest-core.xconf (original)
+++ forrest/trunk/main/webapp/WEB-INF/xconf/forrest-core.xconf Sat Sep 17 16:56:46 2005
@@ -196,12 +196,18 @@
     <!-- For the site: scheme -->
     <component-instance
       class="org.apache.cocoon.components.modules.input.XMLFileModule"
-      logger="core.modules.xml" name="linkmap"/>
+      logger="core.modules.mapper.link" name="linkmap">
+    </component-instance>
 
     <!-- Links to URIs within the site -->
     <component-instance
       class="org.apache.cocoon.components.modules.input.SimpleMappingMetaModule"
-      logger="core.modules.mapper" name="site"/>
+      logger="core.modules.mapper.link" name="site"/>
+
+    <!-- Links to external URIs, as distinct from 'site' URIs -->
+    <component-instance
+      class="org.apache.cocoon.components.modules.input.SimpleMappingMetaModule"
+      logger="core.modules.mapper.link" name="ext"/>
       
     <!-- LocationMap is used to map one URL to another, allowing content to be stored
anywhere -->
     <component-instance 
@@ -209,11 +215,6 @@
       logger="core.modules.mapper.lm" name="lm">
       <file src="cocoon://locationmap.xml"/>
     </component-instance>
-
-    <!-- Links to external URIs, as distinct from 'site' URIs -->
-    <component-instance
-      class="org.apache.cocoon.components.modules.input.SimpleMappingMetaModule"
-      logger="core.modules.mapper" name="ext"/>
 
 </input-modules>
 



Mime
View raw message