You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you log with vargargs (more than two parameters) org.slf4j.impl.Slf4jAdapter replaces the first placeholder with all values, all other placeholders remain un-replaced.
E.g.:
info("1: {} 2: {} 3: {}", "a", "b", "c")
results in
"1: [a, b, c] 2: {} 3: {}"
instead of
"1: a 2: b 3: c"
This is caused by org.slf4j.impl.Slf4jAdapter.format(String, Object[]), line 373.
Simply use org.slf4j.helpers.MessageFormatter.arrayFormat(String, Object) instead of MessageFormatter.format(String, Object).
The text was updated successfully, but these errors were encountered:
When you log with vargargs (more than two parameters) org.slf4j.impl.Slf4jAdapter replaces the first placeholder with all values, all other placeholders remain un-replaced.
E.g.:
info("1: {} 2: {} 3: {}", "a", "b", "c")
results in
"1: [a, b, c] 2: {} 3: {}"
instead of
"1: a 2: b 3: c"
This is caused by org.slf4j.impl.Slf4jAdapter.format(String, Object[]), line 373.
Simply use org.slf4j.helpers.MessageFormatter.arrayFormat(String, Object) instead of MessageFormatter.format(String, Object).
The text was updated successfully, but these errors were encountered: