"Fossies" - the Fresh Open Source Software Archive

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

A hint: This file contains one or more very long lines, so maybe it is better readable using the pure text view mode that shows the contents as wrapped lines within the browser window.


    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 <Configuration status="OFF" strict="false" name="DSI">
   19   <Properties>
   20      <Property name="test2">test2default</Property>
   21      <Property name="attribKey" value="attribValue" />
   22      <Property name="duplicateKey" value="attribValue">nodeValue</Property>
   23      <Property name="test5">${sys:test:-${sys:test2}}</Property>
   24   </Properties>
   25   <Appenders>
   26     <List name="List">
   27         <PatternLayout pattern="[%-5level] %c{1.} user=%X{user} phrasex=%X{phrasex} test=%X{test} test2=$${sys:test2} test3=$${sys:test3:-Unknown} test4=$${sys:test3:-${sys:test}} test5=${test5} attribKey=$${attribKey} duplicateKey=$${duplicateKey}%msg%n" />
   28     </List>
   29   </Appenders>
   30 
   31   <Loggers>
   32     <Logger name="org.apache.logging.log4j.core" level="debug" additivity="false">
   33       <Property name="user">$${sys:user.name}</Property>
   34       <Property name="phrasex">${sys:user.phrasex:-****}</Property>
   35       <Property name="test">${sys:test}</Property>
   36       <AppenderRef ref="List"/>
   37     </Logger>
   38     <Root level="debug">
   39       <Property name="user">${sys:user.name}</Property>
   40       <Property name="phrasex">${sys:user.phrasex:-****}</Property>
   41       <Property name="test">${sys:test}</Property>
   42       <AppenderRef ref="List" />
   43     </Root>
   44   </Loggers>
   45 </Configuration>