logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rpo...@apache.org
Subject svn commit: r1616246 - in /logging/log4j/log4j2/trunk: log4j-api/src/main/java/org/apache/logging/log4j/LogManager.java src/changes/changes.xml
Date Wed, 06 Aug 2014 14:25:04 GMT
Author: rpopma
Date: Wed Aug  6 14:25:04 2014
New Revision: 1616246

URL: http://svn.apache.org/r1616246
Log:
LOG4J2-765 Improve warning message if log4j-core jar not in classpath

Modified:
    logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/LogManager.java
    logging/log4j/log4j2/trunk/src/changes/changes.xml

Modified: logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/LogManager.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/LogManager.java?rev=1616246&r1=1616245&r2=1616246&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/LogManager.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/LogManager.java
Wed Aug  6 14:25:04 2014
@@ -98,7 +98,7 @@ public class LogManager {
                 }
 
                 if (factories.isEmpty()) {
-                    LOGGER.error("Unable to locate a logging implementation, using SimpleLogger");
+                    LOGGER.error("Log4j2 could not find a logging implementation. Please
add log4j-core to the classpath. Using SimpleLogger to log to the console...");
                     factory = new SimpleLoggerContextFactory();
                 } else {
                     final StringBuilder sb = new StringBuilder("Multiple logging implementations
found: \n");
@@ -112,7 +112,7 @@ public class LogManager {
 
                 }
             } else {
-                LOGGER.error("Unable to locate a logging implementation, using SimpleLogger");
+                LOGGER.error("Log4j2 could not find a logging implementation. Please add
log4j-core to the classpath. Using SimpleLogger to log to the console...");
                 factory = new SimpleLoggerContextFactory();
             }
         }

Modified: logging/log4j/log4j2/trunk/src/changes/changes.xml
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/src/changes/changes.xml?rev=1616246&r1=1616245&r2=1616246&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/src/changes/changes.xml (original)
+++ logging/log4j/log4j2/trunk/src/changes/changes.xml Wed Aug  6 14:25:04 2014
@@ -22,6 +22,12 @@
   </properties>
   <body>
     <release version="2.0.2" date="2014-0?-??" description="Bug fixes and enhancements">
+      <action issue="LOG4J2-765" dev="rpopma" type="fix">
+        Improve warning message when missing log4j-core in the classpath.
+      </action>      
+      <action issue="LOG4J2-722" dev="rpopma" type="fix">
+        Clarified in documentation that Commons Logging jar is required when using log4j-jcl.
+      </action>      
       <action issue="LOG4J2-722" dev="rpopma" type="fix">
         Clarified in documentation that Commons Logging jar is required when using log4j-jcl.
       </action>      



Mime
View raw message