Hello,

As you might have already known, JSON template layout uses RecyclerFactory
for recycling objects to maintain a certain memory footprint, that is, work
garbage-free. By default there are 3 recycler factory implementations
shipped: dummy, thread-local, and queue. (See the relevant part of the
manual
<https://logging.apache.org/log4j/2.x/manual/json-template-layout.html> for
details.) I want to use this abstraction throughout the Log4j code base
rather than implicitly relying on ThreadLocals.

What do you think about this?

Kind regards.

Reply via email to