Uploaded image for project: 'SLF4J'
  1. SLF4J
  2. SLF4J-198

SLF4JLocationAwareLog converts null messages to 'null'

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.6.x
    • jcl-over-slf4j
    • None
    • Operating System: Windows XP
      Platform: PC

    Description

      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"

      Attachments

        Activity

          People

            slf4j-dev SLF4J developers list
            tuomas_kiviaho Tuomas Kiviaho
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: