Hello,

I'm a big fan of log4j2 and always recommend it in all my professional
projects.

Lately I have run into an issue while using the log4j2 Json Layout and I
would like to request/contribute a feature.

The gist is to allow the use of the exception pattern for the throwable by
adding it as a property of those layouts, so you can specify a max number
of lines, or remove the package where the code comes from.

This comes as when exceptions get logged in Json format, the stack trace is
huge and I am trying to reduce it a bit as the system we use to process the
logs hits a limit on logline size.

I am new to this so all guidance is welcome. This is the first time I
actually have an idea to contribute to an open source project. From
exploring a bit the code, this is not a fully straightforward change as I
would need to:
- add the new property to the jackson derived formats (it seems to me it
makes sense to have this available for all those, not just the one I want)
- leverage the exception pattern for the logic to serialize the exception

Thank you,
David

Reply via email to