You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Fröstl, Christian <ch...@accenture.com> on 2018/03/16 14:56:37 UTC

Integration of stacktraceAsString in JSONLayout

Hi everybody,

I just tried to use the property stacktraceAsString in JSONLayout, but I always get the following error:
ERROR JSONLayout contains an invalid element or attribute "stacktraceAsString"

We are using log4j2 2.7, but I cannot find any changelog where this option was introduced. Can anybody help me with this?

Thanks and greetings,
Christian


________________________________

This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.

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


Re: Integration of stacktraceAsString in JSONLayout

Posted by Ralph Goers <ra...@dslextreme.com>.
That feature looks like it was introduced with LOG4J2-1923. That issue as marked as being fixed in Log4j 2.9.0. Unfortunately, I don’t see that issue in the manual change log so whoever committed it must have missed documenting it there.

Ralph

> On Mar 16, 2018, at 7:56 AM, Fröstl, Christian <ch...@accenture.com> wrote:
> 
> Hi everybody,
> 
> I just tried to use the property stacktraceAsString in JSONLayout, but I always get the following error:
> ERROR JSONLayout contains an invalid element or attribute "stacktraceAsString"
> 
> We are using log4j2 2.7, but I cannot find any changelog where this option was introduced. Can anybody help me with this?
> 
> Thanks and greetings,
> Christian
> 
> 
> ________________________________
> 
> This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
> 



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