[jboss-jira] [JBoss JIRA] (JGRP-1757) Logging: exceptions are not logged correctly

Bela Ban (JIRA) issues at jboss.org
Mon Dec 16 12:10:33 EST 2013


Bela Ban created JGRP-1757:
------------------------------

             Summary: Logging: exceptions are not logged correctly
                 Key: JGRP-1757
                 URL: https://issues.jboss.org/browse/JGRP-1757
             Project: JGroups
          Issue Type: Bug
            Reporter: Bela Ban
            Assignee: Bela Ban
            Priority: Minor


When calling
{code:java}
log.error("failure: %s", new NullPointerException("booom"));
{code}, the stack trace of the exception is not shown immediately following the error string:

{noformat}
704 [ERROR] jgroups: failure: %s
java.lang.NullPointerException: booom
        at org.jgroups.tests.bla4.main(bla4.java:14) [classes/:?]
{noformat}

Invoking {{toString()}} on the exception works, but in some cases, we want to be able to see the stack trace.
Investigate how to show the stack trace on all (currently) 3 loggers (JDK, log4j and log4j2).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list