logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ihabu...@apache.org
Subject svn commit: r1374602 - /logging/log4php/trunk/src/test/resources/configs/adapters/xml/config_valid_underscore.xml
Date Sat, 18 Aug 2012 16:01:38 GMT
Author: ihabunek
Date: Sat Aug 18 16:01:38 2012
New Revision: 1374602

URL: http://svn.apache.org/viewvc?rev=1374602&view=rev
Log:
Forgot to include XML test file in previous commit.

Added:
    logging/log4php/trunk/src/test/resources/configs/adapters/xml/config_valid_underscore.xml

Added: logging/log4php/trunk/src/test/resources/configs/adapters/xml/config_valid_underscore.xml
URL: http://svn.apache.org/viewvc/logging/log4php/trunk/src/test/resources/configs/adapters/xml/config_valid_underscore.xml?rev=1374602&view=auto
==============================================================================
--- logging/log4php/trunk/src/test/resources/configs/adapters/xml/config_valid_underscore.xml
(added)
+++ logging/log4php/trunk/src/test/resources/configs/adapters/xml/config_valid_underscore.xml
Sat Aug 18 16:01:38 2012
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ 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.
+-->
+
+<!-- Same as config_valid.xml but uses appender-ref instead of appender_ref -->
+
+<configuration xmlns="http://logging.apache.org/log4php" threshold="debug">
+	<renderer renderedClass="Fruit" renderingClass="FruitRenderer" />
+	<renderer renderedClass="Beer" renderingClass="BeerRenderer" />
+    <appender name="default" class="LoggerAppenderEcho">
+        <layout class="LoggerLayoutTTCC"/>
+        <filter class="LoggerFilterLevelRange">
+            <param name="levelMin" value="ERROR" />
+            <param name="levelMax" value="FATAL" />
+            <param name="acceptOnMatch" value="false" />
+        </filter>
+        <filter class="LoggerFilterDenyAll" />
+    </appender>
+	<appender name="file" class="LoggerAppenderDailyFile" threshold="warn">
+		<param name="datePattern" value="Ymd" />
+		<param name="file" value="target/examples/daily_%s.log" />
+        <layout class="LoggerLayoutPattern">
+        	<param name="conversionPattern" value= "%d{ISO8601} [%p] %c: %m (at %F line %L)%n"
/>
+        </layout>
+    </appender>
+    <logger name="foo.bar.baz" additivity="false">
+        <level value="trace" />
+        <appender-ref ref="default" />
+    </logger>
+    <logger name="foo.bar" additivity="true">
+        <level value="debug" />
+        <appender-ref ref="file" />
+    </logger>
+    <logger name="foo">
+        <level value="warn" />
+        <appender-ref ref="default" />
+        <appender-ref ref="file" />
+    </logger>
+    <root>
+        <level value="DEBUG" />
+        <appender-ref ref="default" />
+    </root>
+</configuration>



Mime
View raw message