You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by gg...@apache.org on 2015/05/27 22:50:54 UTC

logging-log4j2 git commit: Add a debug logging event for [LOG4J2-1024] log4j2.xml not found by default in WEB-INF folder

Repository: logging-log4j2
Updated Branches:
  refs/heads/master e2aaf2bce -> 3afc56801


Add a debug logging event for [LOG4J2-1024] log4j2.xml not found by
default in WEB-INF folder

Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/3afc5680
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/3afc5680
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/3afc5680

Branch: refs/heads/master
Commit: 3afc56801b4942ec1675c73f99594b8982a0cda1
Parents: e2aaf2b
Author: Gary Gregory <ga...@gmail.com>
Authored: Wed May 27 13:50:11 2015 -0700
Committer: Gary Gregory <ga...@gmail.com>
Committed: Wed May 27 13:50:11 2015 -0700

----------------------------------------------------------------------
 .../java/org/apache/logging/log4j/web/Log4jWebInitializerImpl.java  | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/3afc5680/log4j-web/src/main/java/org/apache/logging/log4j/web/Log4jWebInitializerImpl.java
----------------------------------------------------------------------
diff --git a/log4j-web/src/main/java/org/apache/logging/log4j/web/Log4jWebInitializerImpl.java b/log4j-web/src/main/java/org/apache/logging/log4j/web/Log4jWebInitializerImpl.java
index e3a7095..a7d70d2 100644
--- a/log4j-web/src/main/java/org/apache/logging/log4j/web/Log4jWebInitializerImpl.java
+++ b/log4j-web/src/main/java/org/apache/logging/log4j/web/Log4jWebInitializerImpl.java
@@ -147,6 +147,7 @@ final class Log4jWebInitializerImpl extends AbstractLifeCycle implements Log4jWe
     private void initializeNonJndi(final String location) {
         if (this.name == null) {
             this.name = this.servletContext.getServletContextName();
+            LOGGER.debug("Using the servlet context name \"{}\".", this.name);
         }
 
         if (this.name == null && location == null) {