[
https://issues.apache.org/jira/browse/LOG4J2-1793?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
elkan updated LOG4J2-1793:
--------------------------
Description:
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.
was:
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()
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.
> 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.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]