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 "John Vasileff (JIRA)" <ji...@apache.org> on 2011/09/16 19:26:08 UTC

[jira] [Updated] (LOG4J2-48) Throwables in ParameterizedMessage

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

John Vasileff updated LOG4J2-48:
--------------------------------

    Attachment: 0001-add-throwable-to-Message-objects-remove-from-log-met.patch

Patch to add getThrowable() to the Message interface and remove Logger methods that accept both a Message and Throwable.

> Throwables in ParameterizedMessage
> ----------------------------------
>
>                 Key: LOG4J2-48
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-48
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: API
>    Affects Versions: 0.1
>            Reporter: John Vasileff
>             Fix For: 0.1
>
>         Attachments: 0001-add-throwable-to-Message-objects-remove-from-log-met.patch
>
>
> ParameterizedMessage objects are capable of identifying throwables when provided as the last parameter in methods like:
> void info(String message, Object... params);
> but they are not properly logged.  In addition, for some Logger methods, a throwable may be specified more than once for Message types that support throwables:
> void info(Message msg, Throwable t);
> See http://mail-archives.apache.org/mod_mbox/logging-log4j-dev/201109.mbox/%3cDDC2E2A0-A4BA-4ED4-8F05-378152690CB9@gmail.com%3e

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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