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

SocketAppender is omitting CallerData.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.16
    • Fix Version/s: 0.9.17
    • Component/s: logback-classic
    • Labels:
      None

      Description

      LoggingEventVO is never assigning a value to callerDataArray so the caller data is omitted regardless of the value of SocketAppenders includeCallerData property.

      As far as I can tell, this should probably be implemented in
      LoggingEventVO build(ILoggingEvent le)
      like this:
      if(le.hasCallerData()) {
      ledo.callerData = le.getCallerData();
      }

      I'm unsure where the caller data should be obtained, though.
      LoggingEventPreSerializationTransformer will probably need an includeCallerData property that's initialized whenever the setIncludeCallerData of SocketAppender is called. It could then execute getCallerData(), if requested, before calling build.

        Attachments

          Activity

            People

            • Assignee:
              ceki Ceki Gülcü
              Reporter:
              jhuxhorn Joern Huxhorn
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: