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

SLF4JBridgeHandler discards records with null message

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.8.0-beta3
    • 1.5.x
    • Unspecified
    • None
    • Operating System: All
      Platform: All

    Description

      SLF4JBridgeHandler checks if the message of a LogRecord is null. If so, it does not forward this LogRecord to the underlying logging system. This causes records with null messages to be discarded. If null messages are an issue for certain logging systems it would be preferable to replace the message with an empty string instead of discarding. This way if a Throwable is included in the LogRecord it will still be forwarded to the logging system.

      Attachments

        Activity

          People

            slf4j-dev SLF4J developers list
            pepijn.vaneeckhoudt@luciad.com Pepijn Van Eeckhoudt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: