This is an automated email from the ASF dual-hosted git repository.

mattsicker pushed a commit to branch release-2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git


The following commit(s) were added to refs/heads/release-2.x by this push:
     new f5c60dbc31 Update exception message to refer to log4j-slf4j2-impl
     new b8931d733a Merge pull request #1069 from afs/fix-message
f5c60dbc31 is described below

commit f5c60dbc310291701cff115e91d11d80bc2ed444
Author: Andy Seaborne <[email protected]>
AuthorDate: Tue Sep 20 09:23:10 2022 +0100

    Update exception message to refer to log4j-slf4j2-impl
---
 .../src/main/java/org/apache/logging/slf4j/Log4jLoggerFactory.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/log4j-slf4j2-impl/src/main/java/org/apache/logging/slf4j/Log4jLoggerFactory.java
 
b/log4j-slf4j2-impl/src/main/java/org/apache/logging/slf4j/Log4jLoggerFactory.java
index f1733013b9..30972aedc4 100644
--- 
a/log4j-slf4j2-impl/src/main/java/org/apache/logging/slf4j/Log4jLoggerFactory.java
+++ 
b/log4j-slf4j2-impl/src/main/java/org/apache/logging/slf4j/Log4jLoggerFactory.java
@@ -67,7 +67,7 @@ public class Log4jLoggerFactory extends 
AbstractLoggerAdapter<Logger> implements
 
     private LoggerContext validateContext(final LoggerContext context) {
         if (TO_SLF4J_CONTEXT.equals(context.getClass().getName())) {
-            throw new LoggingException("log4j-slf4j-impl cannot be present 
with log4j-to-slf4j");
+            throw new LoggingException("log4j-slf4j2-impl cannot be present 
with log4j-to-slf4j");
         }
         return context;
     }

Reply via email to