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
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I noticed since 2.23.0 there was a change #2249 which looks like
AbstractLoggerno longer selectsMessageFactorybetweenReusableParameterizedMessageFactoryandParameterizedMessageFactoryClassbased onConstants.ENABLE_THREADLOCALS.Does this means
log4j2.enable.threadlocalsis no longer used to selectReusableParameterizedMessageFactoryfor GC free logging? What's the recommanded way now to selectReusableParameterizedMessageFactoryfor the logger so that my class that implementsStringBuilderFormattablecan have itsformatTo(StringBuilder buffer)method called instead oftoString()?Thanks heaps!
Beta Was this translation helpful? Give feedback.
All reactions