You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@logging.apache.org by "Ralph Goers (JIRA)" <ji...@apache.org> on 2017/06/08 06:52:18 UTC
[jira] [Commented] (LOG4J2-1793) Why there can't get thrown from
LogEvent
[ https://issues.apache.org/jira/browse/LOG4J2-1793?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16042297#comment-16042297 ]
Ralph Goers commented on LOG4J2-1793:
-------------------------------------
Is there anything to do on this or can it be closed?
> Why there can't get thrown from LogEvent
> ----------------------------------------
>
> Key: LOG4J2-1793
> URL: https://issues.apache.org/jira/browse/LOG4J2-1793
> Project: Log4j 2
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.7
> Environment: JDK1.8, CentOS6
> Reporter: elkan
> Labels: patch
> Original Estimate: 48h
> Remaining Estimate: 48h
>
> There I want create a customer defined appender and need get stack case message. So in over write append method when implements AbstractAppender, then use the function like below code:
> logEvent.getThrown().getCause()
> http://77l54p.com1.z0.glb.clouddn.com/qq20170119142117-log4j2-debug.png-alias (Debug Info)
> But it very interesting, it out put null, but I use Eclipse debug enter it can get message and seems it were drop-dead halt. Is it a bug problem. There need you help, thanks.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)