You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by mi...@apache.org on 2018/01/09 16:38:04 UTC
logging-log4j2 git commit: LOG4J2-1944 improve error message when no
configuration file is found
Repository: logging-log4j2
Updated Branches:
refs/heads/master 1341bb669 -> f40822099
LOG4J2-1944 improve error message when no configuration file is found
Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/f4082209
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/f4082209
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/f4082209
Branch: refs/heads/master
Commit: f408220999e079f8f3994684e84953987be68d6c
Parents: 1341bb6
Author: Mikael Ståldal <mi...@staldal.nu>
Authored: Tue Jan 9 17:37:56 2018 +0100
Committer: Mikael Ståldal <mi...@staldal.nu>
Committed: Tue Jan 9 17:37:56 2018 +0100
----------------------------------------------------------------------
.../apache/logging/log4j/core/config/ConfigurationFactory.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/f4082209/log4j-core/src/main/java/org/apache/logging/log4j/core/config/ConfigurationFactory.java
----------------------------------------------------------------------
diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/config/ConfigurationFactory.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/config/ConfigurationFactory.java
index 98ac069..7e6dfb2 100644
--- a/log4j-core/src/main/java/org/apache/logging/log4j/core/config/ConfigurationFactory.java
+++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/config/ConfigurationFactory.java
@@ -390,7 +390,8 @@ public abstract class ConfigurationFactory extends ConfigurationBuilderFactory {
return config;
}
LOGGER.error("No Log4j 2 configuration file found. " +
- "Using default configuration: logging only errors to the console. " +
+ "Using default configuration (logging only errors to the console), " +
+ "or user programmatically provided configurations. " +
"Set system property 'log4j2.debug' " +
"to show Log4j 2 internal initialization logging. " +
"See https://logging.apache.org/log4j/2.x/manual/configuration.html for instructions on how to configure Log4j 2");