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

LoggingEvent.getFormattedMessage() ignores argumentArray

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 1.0.9
    • None
    • None

    Description

      usage:
      log.warn("abc: ", args, exception);
      args are ignored.

      See following code in LoggingEvent for more information:

      public String getFormattedMessage() {
      if (formattedMessage != null)

      { //here formattedMessage is "abc " return formattedMessage; // here it returns with out appending the args }

      if (argumentArray != null)

      { formattedMessage = MessageFormatter.arrayFormat(message, argumentArray) .getMessage(); }

      else

      { formattedMessage = message; }

      return formattedMessage;
      }

      Attachments

        Activity

          People

            logback-dev Logback dev list
            xxh11 Xiaohan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: