You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by ch...@apache.org on 2005/11/09 16:26:50 UTC
svn commit: r332068 - in /lenya/trunk/src: confpatch/log4j-appender.xconf
confpatch/log4j-appenderref.xconf targets/init-build.xml
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/appender[@name='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/appender-ref[@ref='Chainsaw'] or /configuration/root/node()[self::comment() and contains(., 'appender-ref ref="Chainsaw"')]" 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: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org
Re: svn commit: r332068 - in /lenya/trunk/src: confpatch/log4j-appender.xconf
confpatch/log4j-appenderref.xconf targets/init-build.xml
Posted by Doug Chestnut <dh...@virginia.edu>.
Thanks to a patch by Felix Röthenbacher
chestnut@apache.org 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/appender[@name='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/appender-ref[@ref='Chainsaw'] or /configuration/root/node()[self::comment() and contains(., 'appender-ref ref="Chainsaw"')]" 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: commits-unsubscribe@lenya.apache.org
> For additional commands, e-mail: commits-help@lenya.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org