logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Gregory (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (LOG4J2-1676) Some LogEvents may not carry a Throwable (Use Message.getThrowable() in log(Message) methods)
Date Fri, 18 Nov 2016 05:45:58 GMT

     [ https://issues.apache.org/jira/browse/LOG4J2-1676?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Gary Gregory resolved LOG4J2-1676.
----------------------------------
       Resolution: Fixed
         Assignee: Gary Gregory
    Fix Version/s: 2.8

In Git master. Please verify and close.

> Some LogEvents may not carry a Throwable (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
>    Affects Versions: 2.5, 2.6, 2.7
>            Reporter: Joern Huxhorn
>            Assignee: Gary Gregory
>             Fix For: 2.8
>
>         Attachments: 0001-Refactored-AbstractLoggerTest.patch, 0002-Testing-Message-Throwable-handling.patch,
0003-Using-Throwable-of-Message-if-available.patch, 0004-Using-Throwable-of-Message-if-not-explicitly-given.patch
>
>
> 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


Mime
View raw message