This is an automated email from the ASF dual-hosted git repository.
pkarwasz pushed a commit to branch 2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
The following commit(s) were added to refs/heads/2.x by this push:
new 61e4bda4f3 Copy `log4j2-config.xml` to `log4j-slf4j2-impl`
61e4bda4f3 is described below
commit 61e4bda4f354d453ac8830d6d0b4eb4a709aa59b
Author: Piotr P. Karwasz <[email protected]>
AuthorDate: Sat Sep 3 11:22:10 2022 +0200
Copy `log4j2-config.xml` to `log4j-slf4j2-impl`
---
.../logging/slf4j/Log4jEventBuilderTest.java | 1 -
.../src/test/resources/log4j2-config.xml | 37 ++++++++++++++++++++++
2 files changed, 37 insertions(+), 1 deletion(-)
diff --git
a/log4j-slf4j2-impl/src/test/java/org/apache/logging/slf4j/Log4jEventBuilderTest.java
b/log4j-slf4j2-impl/src/test/java/org/apache/logging/slf4j/Log4jEventBuilderTest.java
index 7b1f42396e..8441bb1c92 100644
---
a/log4j-slf4j2-impl/src/test/java/org/apache/logging/slf4j/Log4jEventBuilderTest.java
+++
b/log4j-slf4j2-impl/src/test/java/org/apache/logging/slf4j/Log4jEventBuilderTest.java
@@ -29,7 +29,6 @@ import org.junit.jupiter.api.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-// Config from `log4j-core` test jar.
@LoggerContextSource("log4j2-config.xml")
public class Log4jEventBuilderTest {
diff --git a/log4j-slf4j2-impl/src/test/resources/log4j2-config.xml
b/log4j-slf4j2-impl/src/test/resources/log4j2-config.xml
new file mode 100644
index 0000000000..d247bd15cd
--- /dev/null
+++ b/log4j-slf4j2-impl/src/test/resources/log4j2-config.xml
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one or more
+ ~ contributor license agreements. See the NOTICE file distributed with
+ ~ this work for additional information regarding copyright ownership.
+ ~ The ASF licenses this file to you under the Apache License, Version 2.0
+ ~ (the "License"); you may not use this file except in compliance with
+ ~ the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License.
+ -->
+<Configuration name="ConfigTest" status="OFF" monitorInterval="5">
+ <Appenders>
+ <Console name="STDOUT">
+ <PatternLayout pattern="%m%n"/>
+ </Console>
+ <List name="List2">
+ <PatternLayout pattern="%m%n"/>
+ </List>
+ <List name="List">
+ </List>
+ </Appenders>
+ <Loggers>
+ <Logger name="org.apache.test" level="trace" additivity="false">
+ <AppenderRef ref="List"/>
+ </Logger>
+ <Root level="error">
+ <AppenderRef ref="STDOUT"/>
+ </Root>
+ </Loggers>
+</Configuration>