[slf4j-dev] [Bug 207] New: SLF4JLocationAwareLog converts null messages to 'null'

bugzilla-daemon at pixie.qos.ch bugzilla-daemon at pixie.qos.ch
Thu Dec 2 13:15:34 CET 2010


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

           Summary: SLF4JLocationAwareLog converts null messages to 'null'
           Product: SLF4J
           Version: 1.6.x
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P1
         Component: jcl-over-slf4j
        AssignedTo: slf4j-dev at qos.ch
        ReportedBy: tuomas.kiviaho at iki.fi


I know that JCL has problems when supplying nulls as log messages (NPE if I
remember correctly) but I found out that slf4j copes with them nicely. I have a
situation where stack trace contains all the information I need and I would
like to misuse the message being null as a certain use case scenario, but I see
that null gets the somewhat annoying String.valueOf(null) -> "null" treatment.
I think more appropriate would be passing null values as null instead of string
"null" since null /= "null"


-- 
Configure bugmail: http://bugzilla.slf4j.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the slf4j-dev mailing list