You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by "Joern Huxhorn (JIRA)" <ji...@apache.org> on 2016/11/08 07:10:58 UTC

[jira] [Created] (LOG4J2-1676) Use Message.getThrowable() in log(Message) methods

Joern Huxhorn created LOG4J2-1676:
-------------------------------------

             Summary: Use Message.getThrowable() in log(Message) methods
                 Key: LOG4J2-1676
                 URL: https://issues.apache.org/jira/browse/LOG4J2-1676
             Project: Log4j 2
          Issue Type: Bug
            Reporter: Joern Huxhorn
             Fix For: 2.7


All {{log(Message)}} methods should use {{Message.getThrowable()}}, e.g.
{code:java}
    public void debug(final Message msg) {
        logIfEnabled(FQCN, Level.DEBUG, null, msg, msg != null ? msg.getThrowable() : null);
    }
{code}
instead of the current
{code:java}
    public void debug(final Message msg) {
        logIfEnabled(FQCN, Level.DEBUG, null, msg, null);
    }
{code}




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org