"Fossies" - the Fresh Open Source Software Archive 
Member "apache-log4j-2.12.4-src/log4j-core/src/test/resources/missingRootLogger.xml" (20 Dec 2021, 1769 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 name="MissingRootTest">
20 <Appenders>
21 <List name="List">
22 <PatternLayout>
23 <Pattern>%d %p %c{1.} [%t] %X{aKey} %location %m %ex%n</Pattern>
24 </PatternLayout>
25 </List>
26 </Appenders>
27
28 <!--
29 This test intentionally excludes a root logger configuration. This is to demonstrate that by default, the root
30 logger is configured as a Logger at the ERROR level with only a ConsoleAppender. Thus, the following would be
31 implicit in a configuration that doesn't otherwise specify the root logger configuration:
32
33 <Appenders>
34 <Console name="Console">
35 <PatternLayout pattern="{the default pattern}"/>
36 </Console>
37 </Appenders>
38
39 <Loggers>
40 <Root level="error">
41 <AppenderRef ref="Console"/>
42 </Root>
43 </Loggers>
44 -->
45 <Loggers>
46 <Logger name="sample" level="info" includeLocation="false">
47 <AppenderRef ref="List"/>
48 </Logger>
49 </Loggers>
50 </Configuration>