Uploaded image for project: 'JBoss Log Manager'
  1. JBoss Log Manager
  2. LOGMGR-108

Exceptions logged via an ExtLogRecord are missing embedded newlines

    XMLWordPrintable

Details

    Description

      when logging using an ExtLogRecord that contains a Throwable from a Class that has no package(default package), the stack trace was missing newlines.

      bug is in org.jboss.logmanager.formatters.Formatters.java in the method:

      private void renderExtended(final StringBuilder builder, final StackTraceElement element, final Map<String, String> cache)

      lines 418 -> 420 are:
      if (dotIdx == -1)

      { return; }

      which allows the routine to return without appending a newline... it might be changed to:

      if (dotIdx == -1)

      { builder.append(NEW_LINE); return; }

      Attachments

        Activity

          People

            jperkins-rhn James Perkins
            mitchell.bass.navy mitchell bass (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: