svn commit: r628118 - in /lenya/trunk/src/confpatch: log4j-sessionCountLogger.xconf session-listener.xweb

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
Author: andreas
Date: Fri Feb 15 08:49:15 2008
New Revision: 628118

URL: http://svn.apache.org/viewvc?rev=628118&view=rev
Log:
Removing session listener patch file, adding session count logging configuration.

Added:
    lenya/trunk/src/confpatch/log4j-sessionCountLogger.xconf
Removed:
    lenya/trunk/src/confpatch/session-listener.xweb

Added: lenya/trunk/src/confpatch/log4j-sessionCountLogger.xconf
URL: http://svn.apache.org/viewvc/lenya/trunk/src/confpatch/log4j-sessionCountLogger.xconf?rev=628118&view=auto
==============================================================================
--- lenya/trunk/src/confpatch/log4j-sessionCountLogger.xconf (added)
+++ lenya/trunk/src/confpatch/log4j-sessionCountLogger.xconf Fri Feb 15 08:49:15 2008
@@ -0,0 +1,35 @@
+<?xml version="1.0"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You 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.
+-->
+
+<xconf xpath="/configuration" unless="/configuration/appender[@name='Sessions']" insert-after="appender">
+
+  <appender class="org.apache.log4j.DailyRollingFileAppender" name="Sessions">
+    <param name="File" value="${context-root}/WEB-INF/logs/sessions.log"/>
+    <param name="DatePattern" value="'.'yyyy-MM-dd'.log'" />
+    <layout class="org.apache.log4j.PatternLayout">
+      <param name="ConversionPattern" value="%d %m%n"/>
+    </layout>     
+  </appender>
+  
+  <logger name="org.apache.lenya.modules.monitoring.SessionCountLogger">
+    <!-- set to "info" to enable session logging -->
+    <level value="error"/>
+    <appender-ref ref="Sessions"/>
+  </logger>
+  
+</xconf>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.