logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgo...@apache.org
Subject svn commit: r1188014 - /logging/log4j/branches/BRANCH_2_0_EXPERIMENTAL/rgoers/log4j2-core/src/test/resources/FlumeFuncTest.xml
Date Mon, 24 Oct 2011 02:29:01 GMT
Author: rgoers
Date: Mon Oct 24 02:29:00 2011
New Revision: 1188014

URL: http://svn.apache.org/viewvc?rev=1188014&view=rev
Log:
Functional test configuration for flume.

Added:
    logging/log4j/branches/BRANCH_2_0_EXPERIMENTAL/rgoers/log4j2-core/src/test/resources/FlumeFuncTest.xml
      - copied, changed from r1185679, logging/log4j/branches/BRANCH_2_0_EXPERIMENTAL/rgoers/log4j2-core/src/test/resources/log4j-failover.xml

Copied: logging/log4j/branches/BRANCH_2_0_EXPERIMENTAL/rgoers/log4j2-core/src/test/resources/FlumeFuncTest.xml
(from r1185679, logging/log4j/branches/BRANCH_2_0_EXPERIMENTAL/rgoers/log4j2-core/src/test/resources/log4j-failover.xml)
URL: http://svn.apache.org/viewvc/logging/log4j/branches/BRANCH_2_0_EXPERIMENTAL/rgoers/log4j2-core/src/test/resources/FlumeFuncTest.xml?p2=logging/log4j/branches/BRANCH_2_0_EXPERIMENTAL/rgoers/log4j2-core/src/test/resources/FlumeFuncTest.xml&p1=logging/log4j/branches/BRANCH_2_0_EXPERIMENTAL/rgoers/log4j2-core/src/test/resources/log4j-failover.xml&r1=1185679&r2=1188014&rev=1188014&view=diff
==============================================================================
--- logging/log4j/branches/BRANCH_2_0_EXPERIMENTAL/rgoers/log4j2-core/src/test/resources/log4j-failover.xml
(original)
+++ logging/log4j/branches/BRANCH_2_0_EXPERIMENTAL/rgoers/log4j2-core/src/test/resources/FlumeFuncTest.xml
Mon Oct 24 02:29:00 2011
@@ -1,18 +1,24 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<configuration packages="" status="error" name="FailoverTest">
+<configuration packages="" status="error" name="Flume">
+  <Filters>
+    <Marker marker="EVENT" onMatch="ACCEPT" onMisMatch="NEUTRAL"/>
+  </Filters>
   <Appenders>
-    <AlwaysFail name="Fail" />
-    <List name="List" />
-    <Failover name="Failover" primary="Fail" suppressExceptions="false">
-      <Failovers>
-        <appender-ref ref="List"/>
-      </Failovers>
-    </Failover>
+    <Flume name="eventLogger" suppressExceptions="false" mdcPrefix="." compress="true">
+      <Agent host="192.168.10.101" port="8800"/>
+      <RFC5424Layout enterpriseNumber="18060" includeMDC="true" mdcId="RequestContext"
appName="MyApp"/>
+    </Flume>
+    <Console name="console">
+      <PatternLayout pattern="%d{HH:mm:ss.SSS} %-5level %class{36}:%L %M - %msg%n"/>
+    </Console>
   </Appenders>
 
   <loggers>
+    <logger name="EventLogger" level="info" additivity="false">
+      <appender-ref ref="eventLogger"/>
+    </logger>
     <root level="error">
-      <appender-ref ref="Failover"/>
+      <appender-ref ref="console"/>
     </root>
   </loggers>
 



Mime
View raw message