forrest-svn mailing list archives

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

URL: http://svn.apache.org/viewcvs?rev=289863&view=rev
Log:
Enable locationmap events 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=289863&r1=289862&r2=289863&view=diff
==============================================================================
--- forrest/trunk/main/webapp/WEB-INF/logkit.xconf (original)
+++ forrest/trunk/main/webapp/WEB-INF/logkit.xconf Sat Sep 17 16:42:57 2005
@@ -1,6 +1,6 @@
 <?xml version="1.0"?>
 <!--
-  Copyright 2002-2004 The Apache Software Foundation or its licensors,
+  Copyright 2002-2005 The Apache Software Foundation or its licensors,
   as applicable.
 
   Licensed under the Apache License, Version 2.0 (the "License");
@@ -65,6 +65,14 @@
       <append>false</append>
     </cocoon>
 
+    <cocoon id="locationmap">
+      <filename>${context-root}/WEB-INF/logs/locationmap.log</filename>
+      <format type="cocoon">
+        %7.7{priority} [%{category}] (%{uri}): %{message}\n%{throwable}
+      </format>
+      <append>false</append>
+    </cocoon>
+
     <cocoon id="idgen">
       <filename>${context-root}/WEB-INF/logs/idgen.log</filename>
       <format type="cocoon">
@@ -179,6 +187,10 @@
         </category>
         <log-target id-ref="core"/>
         <log-target id-ref="error"/>
+      </category>
+
+      <category name="modules.mapper.lm" log-level="INFO">
+        <log-target id-ref="locationmap"/>
       </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=289863&r1=289862&r2=289863&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:42:57 2005
@@ -206,7 +206,7 @@
     <!-- LocationMap is used to map one URL to another, allowing content to be stored
anywhere -->
     <component-instance 
       class="org.apache.forrest.locationmap.LocationMapModule" 
-      logger="core.modules.mapper" name="lm">
+      logger="core.modules.mapper.lm" name="lm">
       <file src="cocoon://locationmap.xml"/>
     </component-instance>
 



Mime
View raw message