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

SLF4JBridgeHandler discards records with null message

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 1.5.x
    • Fix Version/s: 1.8.0-beta3
    • Component/s: Unspecified
    • Labels:
      None
    • Environment:

      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

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: