"Fossies" - the Fresh Open Source Software Archive

Member "apache-log4j-2.12.4-src/log4j-core/src/test/resources/log4j-rolling-zip.xml" (20 Dec 2021, 2065 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.

    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="WARN" name="XMLConfigTest">
   20   <Properties>
   21     <Property name="filename">target/rolling1/rollingtest.log</Property>
   22   </Properties>
   23   <ThresholdFilter level="debug"/>
   24 
   25   <Appenders>
   26     <Console name="STDOUT">
   27       <PatternLayout pattern="%m%n"/>
   28     </Console>
   29     <RollingFile name="RollingFile" fileName="${filename}"
   30                  filePattern="target/rolling1/test1-$${date:MM-dd-yyyy}-%i.log.zip">
   31       <PatternLayout>
   32         <Pattern>%d %p %C{1.} [%t] %m%n</Pattern>
   33       </PatternLayout>
   34       <SizeBasedTriggeringPolicy size="500" />
   35       <DefaultRolloverStrategy compressionLevel="9" />
   36     </RollingFile>
   37     <List name="List">
   38       <ThresholdFilter level="error"/>
   39     </List>
   40   </Appenders>
   41 
   42   <Loggers>
   43     <Logger name="org.apache.logging.log4j.test1" level="debug" additivity="false">
   44       <ThreadContextMapFilter>
   45         <KeyValuePair key="test" value="123"/>
   46       </ThreadContextMapFilter>
   47       <AppenderRef ref="STDOUT"/>
   48     </Logger>>
   49 
   50     <Logger name="org.apache.logging.log4j.core.appender.rolling" level="debug" additivity="false">
   51       <AppenderRef ref="RollingFile"/>
   52     </Logger>>
   53 
   54     <Root level="error">
   55       <AppenderRef ref="STDOUT"/>
   56     </Root>
   57   </Loggers>
   58 
   59 </Configuration>