Author: cziegeler
Date: Mon Nov  8 09:24:37 2004
New Revision: 56948

Added:
   cocoon/trunk/src/blocks/portal/conf/portal-category.xlog
   cocoon/trunk/src/blocks/portal/conf/portal-target.xlog
Log:
Add portal category and target

Added: cocoon/trunk/src/blocks/portal/conf/portal-category.xlog
==============================================================================
--- (empty file)
+++ cocoon/trunk/src/blocks/portal/conf/portal-category.xlog    Mon Nov  8 
09:24:37 2004
@@ -0,0 +1,29 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<!-- mind how xpatch oddly requires the file extension to 
+       be equal to the root elm -->
+       
+<xlog xpath="/logkit/categories" 
+      unless="[EMAIL PROTECTED]'portal']">
+    
+    <category log-level="@loglevel@" name="portal">
+      <log-target id-ref="portal" />
+      <log-target id-ref="error"/>
+    </category>
+    
+</xlog>

Added: cocoon/trunk/src/blocks/portal/conf/portal-target.xlog
==============================================================================
--- (empty file)
+++ cocoon/trunk/src/blocks/portal/conf/portal-target.xlog      Mon Nov  8 
09:24:37 2004
@@ -0,0 +1,30 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<xlog xpath="/logkit/targets" 
+      unless="[EMAIL PROTECTED]'portal']">
+    
+    <cocoon id="portal">
+      <filename>${context-root}/WEB-INF/logs/portal.log</filename>
+
+      <format type="cocoon">
+        %7.7{priority} %{time}   [%{category}] (%{uri}) 
%{thread}/%{class:short}: %{message}\n%{throwable}
+      </format>
+      <append>false</append>
+    </cocoon>
+    
+</xlog>

Reply via email to