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 2016/05/30 03:19:02 UTC

svn commit: r989539 - /websites/production/logging/content/log4j/log4j-2.6/index.html

Author: rgoers
Date: Mon May 30 03:19:02 2016
New Revision: 989539

Log:
Add note about 2.6 source incompatibility

Modified:
    websites/production/logging/content/log4j/log4j-2.6/index.html

Modified: websites/production/logging/content/log4j/log4j-2.6/index.html
==============================================================================
--- websites/production/logging/content/log4j/log4j-2.6/index.html (original)
+++ websites/production/logging/content/log4j/log4j-2.6/index.html Mon May 30 03:19:02 2016
@@ -424,10 +424,26 @@
 <h3><a name="News"></a>News</h3>
             
 <p>
-              Log4j 2 is now available for production. The API for Log4j 2 is not compatible with Log4j 1.x, however an adapter
+              Log4j 2.6 is now available for production use. The API for Log4j 2 is not compatible with Log4j 1.x, however an adapter
               is available to allow applications to continue to use the Log4j 1.x API. Adapters are also available for
               Apache Commons Logging and SLF4J.
             </p>
+			<p>
+				Note that subsequent to the release a minor source incompatibility was found due to the addition of new methods to
+the Logger interface. If you have code that does:</p>
+<pre>
+    logger.error(null, "This is the log message", throwable);
+</pre>
+ <p>
+or similar with any log level you will get a compiler error saying the reference is ambiguous.  To correct this either do:</p>
+<pre>
+    logger.error("This is the log message", throwable);
+</pre>
+<p>or</p>
+<pre>
+    logger.error((Marker) null, "This is the log message", throwable);
+</pre
+<p>Log4j 2.6 maintains binary compatibility with previous releases.</p>
           </div>
         </div>