[jboss-jira] [JBoss JIRA] (LOGMGR-108) Exceptions logged via an ExtLogRecord are missing embedded newlines

James Perkins (JIRA) issues at jboss.org
Wed Jun 18 14:47:24 EDT 2014


     [ https://issues.jboss.org/browse/LOGMGR-108?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Perkins moved JBLOGGING-105 to LOGMGR-108:
------------------------------------------------

              Project: JBoss Log Manager  (was: JBoss Logging)
                  Key: LOGMGR-108  (was: JBLOGGING-105)
    Affects Version/s:     (was: 3.2.0.Beta1)
          Component/s:     (was: jboss-logging-logmanager)


> Exceptions logged via an ExtLogRecord are missing embedded newlines
> -------------------------------------------------------------------
>
>                 Key: LOGMGR-108
>                 URL: https://issues.jboss.org/browse/LOGMGR-108
>             Project: JBoss Log Manager
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>         Environment: windows 7, eap 6.2
>            Reporter: mitchell bass
>            Assignee: James Perkins
>            Priority: Trivial
>              Labels: default_package, exceptions, jboss, logging
>
> 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;
>                 }



--
This message was sent by Atlassian JIRA
(v6.2.6#6264)


More information about the jboss-jira mailing list