[slf4j-dev] svn commit: r1001 - slf4j/trunk/slf4j-site/src/site/pages

ceki at slf4j.org ceki at slf4j.org
Wed Mar 5 14:53:31 CET 2008


Author: ceki
Date: Wed Mar  5 14:53:31 2008
New Revision: 1001

Modified:
   slf4j/trunk/slf4j-site/src/site/pages/migrator.html

Log:
- documenting the fact that only messages of type String are supported

Modified: slf4j/trunk/slf4j-site/src/site/pages/migrator.html
==============================================================================
--- slf4j/trunk/slf4j-site/src/site/pages/migrator.html	(original)
+++ slf4j/trunk/slf4j-site/src/site/pages/migrator.html	Wed Mar  5 14:53:31 2008
@@ -111,6 +111,22 @@
     <p></p>
     </li>
 
+    <li>only messages of type String are supported
+
+    <p>If one of your log statements contains a non-string object as
+    its sole parameter, you will have to manually add a toString()
+    method call on the object. In most cases, there are surprisingly
+    few such log statements.
+    </p>
+
+    <p>For example,</p>
+    <p class="source">logger.debug(new Object()); </p>
+    <p>has to be manually re-written as</p>
+    <p class="source">logger.debug(new Object().toString()); </p>
+
+    <p></p>
+    </li>
+
     <li>the FATAL level is not supported. 
     
     <p>You have to convert them manually. This is limitation is not



More information about the slf4j-dev mailing list