A specific set of parameterised logging messages produces an Array Index Out of Bounds exception. It occurs due to the params array (initially set to 10) being reset to a lower number due to a lambda function passed in as an parameter. Then the subsequent logging messages don't reset this number.
Best to explain in an example:
Work around for this is not to use the ReusableParameterizedMessage. Instead to specify the legacy Message Factory of ParameterizedMessageFactory as a property of the program and no exception occurs.