http://bugzilla.slf4j.org/show_bug.cgi?id=12


[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         OS/Version|Windows XP                  |All




------- Additional Comments From [EMAIL PROTECTED]  2006-01-08 21:21 -------
(In reply to comment #0)
> Suggest test the following change
> 
>   private String messageString (Object message) {
>     return message==null?message.toString():"";
>   }
> 
>   public void debug(Object message) {
>     logger.debug(messageString(message));
>   }
There is another possibility. In the current trunk version (and prior release
versions) each wrapper in JCL has a different behaviour:
Some do
String.valueOf(message);
some do
if (message == null) {
return;
}

This has to be specified in the o.a.c.l.Log interface.
I suggest String.valueOf, because an underlying log system may
detected location information and you can check the code why null
is passed.
See
http://issues.apache.org/bugzilla/show_bug.cgi?id=38174
for details.

-- 
Configure bugmail: http://bugzilla.slf4j.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
_______________________________________________
dev mailing list
[email protected]
http://slf4j.org/mailman/listinfo/dev

Reply via email to