Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-349

LoggingEventVO is using a simply toString during serialization, fumbling with arrays.

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 0.9.20
    • logback-classic
    • None

    Description

      Any array used as parameter shows up unreadable.

      It should instead use the same toString logic used by MessageFormatter.

      I'd have submitted a patch/branch for this issue but - unfortunately - SLF4J MessageFormatter does not have a method that's performing just the String conversion.

      Please see
      http://github.com/huxi/lilith/blob/master/lilith-data/logging/src/main/java/de/huxhorn/lilith/data/logging/MessageFormatter.java
      especially the method
      String deepToString(Object o)

      Because of this, a fix (providing and using said method) would span over both SLF4J and Logback.

      Attachments

        Activity

          People

            logback-dev Logback dev list
            jhuxhorn Joern Huxhorn
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: