GitHub user ppkarwasz added a comment to the discussion: Parameterized Info
intermittently throws IllegalArgumentException
> But can you think of scenarios where this may occur ?
In version `2.21.0`, the parameter formatting logic was changed to **strictly
enforce** a match between `{}` placeholders and arguments—throwing an exception
on mismatch. This broke backward compatibility. The original lenient behavior
was **restored in version `2.24.0`** (see #2380).
As for the cause of the mismatch: could you share your logging statement and
the API you're using? The Log4j API supports up to 10 arguments before
switching to **varargs**, while others switch to varargs much sooner. I suspect
that varargs arguments might be trimmed by some logging bridge.
> 2.24.3 is not available under our org enterprise distribution yet - pending
> approval.
Could you share more about your upgrade policy? I’m currently working with the
**non-profit** [Open Source Economy](https://www.open-source-economy.com/) to
explore the feasibility of supporting multiple minor Log4j versions
simultaneously. Right now, all Log4j maintainers are volunteers, so we can only
support the latest version. However, with funding from OSE’s clients, we could
potentially take on broader Log4j maintenance as part of our regular work.
GitHub link:
https://github.com/apache/logging-log4j2/discussions/3695#discussioncomment-13292909
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]