Thanks to a patch by Felix Röthenbacher

[EMAIL PROTECTED] wrote:
Author: chestnut
Date: Wed Nov  9 07:26:40 2005
New Revision: 332068

URL: http://svn.apache.org/viewcvs?rev=332068&view=rev
Log:
Configuration of log4j.xconf

Added:
    lenya/trunk/src/confpatch/log4j-appender.xconf   (with props)
    lenya/trunk/src/confpatch/log4j-appenderref.xconf   (with props)
Modified:
    lenya/trunk/src/targets/init-build.xml

Added: lenya/trunk/src/confpatch/log4j-appender.xconf
URL: 
http://svn.apache.org/viewcvs/lenya/trunk/src/confpatch/log4j-appender.xconf?rev=332068&view=auto
==============================================================================
--- lenya/trunk/src/confpatch/log4j-appender.xconf (added)
+++ lenya/trunk/src/confpatch/log4j-appender.xconf Wed Nov  9 07:26:40 2005
@@ -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.
+-->
+
+<xconf xpath="/configuration" unless="/configuration/[EMAIL PROTECTED]'Chainsaw']" 
insert-after="appender">
+
+ <!--+ + | See http://logging.apache.org/log4j/docs/chainsaw.html
+        +-->
+    <appender name="Chainsaw" class="org.apache.log4j.net.SocketAppender">
+        <param name="remoteHost" value="localhost" />
+        <param name="port" value="4445"/>
+        <param name="locationInfo" value="true" />
+    </appender>
+
+</xconf>

Propchange: lenya/trunk/src/confpatch/log4j-appender.xconf
------------------------------------------------------------------------------
    svn:eol-style = native

Added: lenya/trunk/src/confpatch/log4j-appenderref.xconf
URL: 
http://svn.apache.org/viewcvs/lenya/trunk/src/confpatch/log4j-appenderref.xconf?rev=332068&view=auto
==============================================================================
--- lenya/trunk/src/confpatch/log4j-appenderref.xconf (added)
+++ lenya/trunk/src/confpatch/log4j-appenderref.xconf Wed Nov  9 07:26:40 2005
@@ -0,0 +1,27 @@
+<?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.
+-->
+
+<xconf xpath="/configuration/root" unless="/configuration/root/[EMAIL PROTECTED]'Chainsaw'] or 
/configuration/root/node()[self::comment() and contains(., 'appender-ref ref=&quot;Chainsaw&quot;')]" 
insert-after="appender-ref">
+
+      <!--+
+          | Uncomment to enable logging to Chainsaw.
+          | See http://logging.apache.org/log4j/docs/chainsaw.html
+          +-->
+      <!--
+      <appender-ref ref="Chainsaw" />
+        -->
+</xconf>

Propchange: lenya/trunk/src/confpatch/log4j-appenderref.xconf
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: lenya/trunk/src/targets/init-build.xml
URL: 
http://svn.apache.org/viewcvs/lenya/trunk/src/targets/init-build.xml?rev=332068&r1=332067&r2=332068&view=diff
==============================================================================
--- lenya/trunk/src/targets/init-build.xml (original)
+++ lenya/trunk/src/targets/init-build.xml Wed Nov  9 07:26:40 2005
@@ -99,6 +99,10 @@
     <xpatch file="${build.webapp}/WEB-INF/logkit.xconf"
includes="src/confpatch/logkit-*.xconf"/> + <!-- patch log4j.xconf -->
+    <xpatch file="${build.webapp}/WEB-INF/log4j.xconf"
+ includes="src/confpatch/log4j-*.xconf"/> + <!-- patch web.xml --> <xpatch file="${build.webapp}/WEB-INF/web.xml" includes="src/confpatch/*.xweb"/>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to