Re: [External] Re: How to encode %m or %ex ?

2018-01-26 Thread Mikael Ståldal
It is documented here: https://logging.apache.org/log4j/2.x/manual/layouts.html#PatternLayout right? On 2018-01-26 17:33, Matt Sicker wrote: The %encode{}{JSON} pattern was added in version 2.8.2. It doesn't appear to be documented on the layout manual page, but the feature is mentioned in

Re: [External] Re: How to encode %m or %ex ?

2018-01-26 Thread Matt Sicker
The %encode{}{JSON} pattern was added in version 2.8.2. It doesn't appear to be documented on the layout manual page, but the feature is mentioned in the changelog for issue . On 26 January 2018 at 00:53, Fröstl, Christian <

Re: [External] Re: How to encode %m or %ex ?

2018-01-25 Thread Fröstl , Christian
We are using log4j2 2.7. It's a hybris application and packaged with ant, or what do you want to know? On 25.01.18, 21:56, "Matt Sicker" wrote: Can you verify the version of Log4j you're using along with how you're packaging your application? On 25 January 2018

Re: [External] Re: How to encode %m or %ex ?

2018-01-25 Thread Matt Sicker
Can you verify the version of Log4j you're using along with how you're packaging your application? On 25 January 2018 at 14:33, Fröstl, Christian < christian.froe...@accenture.com> wrote: > Yes, you're right, this is exactly what I want. > If I use this %encode{%m}{JSON} notation, I only have

Re: [External] Re: How to encode %m or %ex ?

2018-01-25 Thread Fröstl , Christian
Yes, you're right, this is exactly what I want. If I use this %encode{%m}{JSON} notation, I only have the string "%encode" in my logfiles and not a the encoded message field. Do you have an idea why this happens? On 25.01.18, 19:52, "Matt Sicker" wrote: Using