How to configure 2.23.0+ AbstractLogger to not use ParameterizedMessageFactory? #2838
Unanswered
JohntheMorty
asked this question in
Q&A
Replies: 1 comment
-
Hi @JohntheMorty,
No, it is simply a regression (#2379) that will be fixed in the upcoming 2.24.0 version. Log4j API 2.22.x and earlier version had a complex initialization process that required the usage of two classes ( |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I noticed since 2.23.0 there was a change #2249 which looks like
AbstractLogger
no longer selectsMessageFactory
betweenReusableParameterizedMessageFactory
andParameterizedMessageFactoryClass
based onConstants.ENABLE_THREADLOCALS
.Does this means
log4j2.enable.threadlocals
is no longer used to selectReusableParameterizedMessageFactory
for GC free logging? What's the recommanded way now to selectReusableParameterizedMessageFactory
for the logger so that my class that implementsStringBuilderFormattable
can have itsformatTo(StringBuilder buffer)
method called instead oftoString()
?Thanks heaps!
Beta Was this translation helpful? Give feedback.
All reactions