You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@logging.apache.org by Volkan Yazıcı <vo...@gmail.com> on 2020/04/22 09:36:56 UTC
Garbage-generating PatternLayout#serialize(LogEvent,StringBuilder)
Hello,
For the records, PatternLayout#serialize(LogEvent,StringBuilder) falls
back to AbstractStringLayout#toSerializable(LogEvent,StringBuilder)
which consequently passes the ball to toSerializable(LogEvent), which
is not garbage-free. This is an obstacle for certain layouts (e.g.,
Gelf, JsonTemplate) that try to incorporate PatternLayout and strive
to stay garbage-free. Do/Shall we have plans to improve this?
Kind regards.