"Fossies" - the Fresh Open Source Software Archive 
Member "apache-log4j-2.12.4-src/log4j-core/src/test/resources/log4j-scriptRef-filters.xml" (20 Dec 2021, 1837 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 <Configuration status="ERROR">
19 <Scripts>
20 <ScriptFile name="filter.js" language="JavaScript" path="src/test/resources/scripts/filter.js" charset="UTF-8" />
21 <ScriptFile name="filter.groovy" path="src/test/resources/scripts/filter.groovy" charset="UTF-8" />
22 </Scripts>
23 <Appenders>
24 <List name="List">
25 <PatternLayout pattern="[%-5level] %c{1.} %msg%n"/>
26 </List>
27 </Appenders>
28 <Loggers>
29 <Logger name="TestJavaScriptFilter" level="trace" additivity="false">
30 <AppenderRef ref="List">
31 <ScriptFilter onMatch="ACCEPT" onMisMatch="DENY">
32 <ScriptRef ref="filter.js" />
33 </ScriptFilter>
34 </AppenderRef>
35 </Logger>
36 <Logger name="TestGroovyFilter" level="trace" additivity="false">
37 <AppenderRef ref="List">
38 <ScriptFilter onMatch="ACCEPT" onMisMatch="DENY">
39 <ScriptRef ref="filter.groovy" />
40 </ScriptFilter>
41 </AppenderRef>
42 </Logger>
43 <Root level="trace">
44 <AppenderRef ref="List" />
45 </Root>
46 </Loggers>
47 </Configuration>