You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by rg...@apache.org on 2022/02/20 22:26:05 UTC
[logging-log4j2] branch release-2.x updated: LOG4J2-3304 - Fix issue that the initialize status of LogManager is not set when factoryClassName is present and instantiate successfully (#676)
This is an automated email from the ASF dual-hosted git repository.
rgoers 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 8e89ecd LOG4J2-3304 - Fix issue that the initialize status of LogManager is not set when factoryClassName is present and instantiate successfully (#676)
8e89ecd is described below
commit 8e89ecd4a94e2f600423564c8381f8a0f9b12fe6
Author: Francis <95...@qq.com>
AuthorDate: Mon Feb 21 06:25:57 2022 +0800
LOG4J2-3304 - Fix issue that the initialize status of LogManager is not set when factoryClassName is present and instantiate successfully (#676)
---
log4j-api/src/main/java/org/apache/logging/log4j/LogManager.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/log4j-api/src/main/java/org/apache/logging/log4j/LogManager.java b/log4j-api/src/main/java/org/apache/logging/log4j/LogManager.java
index 88f3168..f13957c 100644
--- a/log4j-api/src/main/java/org/apache/logging/log4j/LogManager.java
+++ b/log4j-api/src/main/java/org/apache/logging/log4j/LogManager.java
@@ -122,8 +122,8 @@ public class LogManager {
+ "Please add log4j-core to the classpath. Using SimpleLogger to log to the console...");
factory = SimpleLoggerContextFactory.INSTANCE;
}
- LogManagerStatus.setInitialized(true);
}
+ LogManagerStatus.setInitialized(true);
}
/**