You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2008/02/15 17:49:16 UTC

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

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>



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org