You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by cz...@apache.org on 2004/11/08 18:19:46 UTC

svn commit: rev 56946 - cocoon/branches/BRANCH_2_1_X/src/blocks/portal/conf

Author: cziegeler
Date: Mon Nov  8 09:19:46 2004
New Revision: 56946

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

Added: cocoon/branches/BRANCH_2_1_X/src/blocks/portal/conf/portal-category.xlog
==============================================================================
--- (empty file)
+++ cocoon/branches/BRANCH_2_1_X/src/blocks/portal/conf/portal-category.xlog	Mon Nov  8 09:19:46 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="category[@name='portal']">
+    
+    <category log-level="@loglevel@" name="portal">
+      <log-target id-ref="portal" />
+      <log-target id-ref="error"/>
+    </category>
+    
+</xlog>

Added: cocoon/branches/BRANCH_2_1_X/src/blocks/portal/conf/portal-target.xlog
==============================================================================
--- (empty file)
+++ cocoon/branches/BRANCH_2_1_X/src/blocks/portal/conf/portal-target.xlog	Mon Nov  8 09:19:46 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="cocoon[@id='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>