"Fossies" - the Fresh Open Source Software Archive

Member "apache-log4j-2.12.4-src/log4j-core/src/test/resources/log4j-routing-purge.xml" (20 Dec 2021, 2727 Bytes) of package /linux/misc/apache-log4j-2.12.4-src.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) XML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "log4j-routing-purge.xml": 2.17.1_vs_2.17.2-rc1.

    1 <?xml version="1.0" encoding="UTF-8"?>
    2 <!--
    3  Licensed to the Apache Software Foundation (ASF) under one or more
    4  contributor license agreements.  See the NOTICE file distributed with
    5  this work for additional information regarding copyright ownership.
    6  The ASF licenses this file to You under the Apache License, Version 2.0
    7  (the "License"); you may not use this file except in compliance with
    8  the License.  You may obtain a copy of the License at
    9 
   10       http://www.apache.org/licenses/LICENSE-2.0
   11 
   12  Unless required by applicable law or agreed to in writing, software
   13  distributed under the License is distributed on an "AS IS" BASIS,
   14  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   15  See the License for the specific language governing permissions and
   16  limitations under the License.
   17 
   18 -->
   19 <Configuration status="OFF" name="RoutingTest">
   20   <ThresholdFilter level="debug"/>
   21 
   22   <Appenders>
   23     <Console name="STDOUT">
   24       <PatternLayout pattern="%m%n"/>
   25     </Console>
   26     <List name="List">
   27       <ThresholdFilter level="debug"/>
   28     </List>
   29     <List name="ReferencedList"/>
   30     <Routing name="RoutingPurgeIdle">
   31       <Routes pattern="$${sd:id}">
   32         <Route>
   33           <File name="Routing-${sd:id}" fileName="target/routing-purge-idle/routingtest-${sd:id}.log">
   34             <PatternLayout>
   35               <Pattern>%d %p %C{1.} [%t] %m%n</Pattern>
   36             </PatternLayout>
   37           </File>
   38         </Route>
   39         <Route ref="ReferencedList" key="2"/>
   40       </Routes>
   41       <IdlePurgePolicy timeToLive="2" timeUnit="seconds" />
   42     </Routing>
   43 
   44     <Routing name="RoutingPurgeIdleWithHangingAppender">
   45       <Routes pattern="$${sd:id}">
   46         <Route>
   47           <Hanging name="Routing-${sd:id}" shutdownDelay="10000"/>
   48         </Route>
   49         <Route ref="ReferencedList" key="2"/>
   50       </Routes>
   51       <IdlePurgePolicy timeToLive="2" timeUnit="seconds" />
   52     </Routing>
   53 
   54     <Routing name="RoutingPurgeManual">
   55       <Routes pattern="$${sd:id}">
   56         <Route>
   57           <File name="Routing-${sd:id}" fileName="target/routing-purge-manual/routingtest-${sd:id}.log">
   58             <PatternLayout>
   59               <Pattern>%d %p %C{1.} [%t] %m%n</Pattern>
   60             </PatternLayout>
   61           </File>
   62         </Route>
   63         <Route ref="ReferencedList" key="2"/>
   64       </Routes>
   65     </Routing>
   66   </Appenders>
   67 
   68   <Loggers>
   69     <Logger name="EventLogger" level="info" additivity="false">
   70       <AppenderRef ref="RoutingPurgeIdle"/>
   71       <AppenderRef ref="RoutingPurgeIdleWithHangingAppender"/>
   72       <AppenderRef ref="RoutingPurgeManual"/>
   73       <AppenderRef ref="List"/>
   74     </Logger>
   75 
   76     <Root level="error">
   77       <AppenderRef ref="STDOUT"/>
   78     </Root>
   79   </Loggers>
   80 
   81 </Configuration>