You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by pk...@apache.org on 2023/12/28 11:09:54 UTC
(logging-log4j2) branch main updated: Remove unused logback test
This is an automated email from the ASF dual-hosted git repository.
pkarwasz pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
The following commit(s) were added to refs/heads/main by this push:
new 682c8ce8ec Remove unused logback test
682c8ce8ec is described below
commit 682c8ce8ece7b23b2bb08fbcb61c5ab9d9e427b1
Author: Piotr P. Karwasz <pi...@karwasz.org>
AuthorDate: Thu Dec 28 12:07:39 2023 +0100
Remove unused logback test
---
.../logging/log4j/core/LogbackSubstitution.java | 36 ----------------------
.../src/test/resources/logback-subst.xml | 28 -----------------
2 files changed, 64 deletions(-)
diff --git a/log4j-core-test/src/test/java/org/apache/logging/log4j/core/LogbackSubstitution.java b/log4j-core-test/src/test/java/org/apache/logging/log4j/core/LogbackSubstitution.java
deleted file mode 100644
index 39471cbd8f..0000000000
--- a/log4j-core-test/src/test/java/org/apache/logging/log4j/core/LogbackSubstitution.java
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.core;
-
-import org.junit.jupiter.api.Test;
-import org.junitpioneer.jupiter.SetSystemProperty;
-import org.slf4j.LoggerFactory;
-
-/**
- *
- */
-@SetSystemProperty(key = "logback.configurationFile", value = "logback-subst.xml")
-public class LogbackSubstitution {
-
- private final org.slf4j.Logger logger = LoggerFactory.getLogger(LogbackSubstitution.class);
-
- @Test
- public void testSubst() {
- logger.debug("Hello, {}", "Log4j {}");
- logger.debug("Hello, {}");
- }
-}
diff --git a/log4j-core-test/src/test/resources/logback-subst.xml b/log4j-core-test/src/test/resources/logback-subst.xml
deleted file mode 100644
index 82eef29f5e..0000000000
--- a/log4j-core-test/src/test/resources/logback-subst.xml
+++ /dev/null
@@ -1,28 +0,0 @@
-<?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>
- <appender name="stdout" class="ch.qos.logback.core.ConsoleAppender">
- <encoder>
- <Pattern>%d %5p [%t] %c{0} - %m%n</Pattern>
- </encoder>
- </appender>
-
- <root level="debug">
- <appender-ref ref="stdout" />
- </root>
-</configuration>