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:22:09 UTC
[jira] [Created] (LOG4J2-48) Throwables in ParameterizedMessage
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
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
[jira] [Commented] (LOG4J2-48) Throwables in ParameterizedMessage
Posted by "Ralph Goers (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LOG4J2-48?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13107366#comment-13107366 ]
Ralph Goers commented on LOG4J2-48:
-----------------------------------
I have corrected the Log4j 2.0 and SLF4J bridge to properly pass the throwable from ParameterizedMessage so that it is included in the LogEvent and will now be properly logged, so the actual defect being raised here has been resolved. Whether to include the Throwable in the Message interface or create a new ThrowableMessage is a separate topic that should be in its own Jira issue.
> 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
[jira] [Updated] (LOG4J2-48) Throwables in ParameterizedMessage
Posted by "John Vasileff (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Resolved] (LOG4J2-48) Throwables in ParameterizedMessage
Posted by "Ralph Goers (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LOG4J2-48?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ralph Goers resolved LOG4J2-48.
-------------------------------
Resolution: Fixed
Assignee: Ralph Goers
Per the previous comment I am marking this issue as fixed.
> 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
> Assignee: Ralph Goers
> 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
[jira] [Closed] (LOG4J2-48) Throwables in ParameterizedMessage
Posted by "Ralph Goers (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LOG4J2-48?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ralph Goers closed LOG4J2-48.
-----------------------------
Closing this issue since there have been no other comments since it was marked resolved.
> 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
> Assignee: Ralph Goers
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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