Details
-
Improvement
-
Resolution: Won't Fix
-
None
-
None
-
None
-
Operating System: Windows NT
Platform: PC
-
enhancement
-
P5
-
322
Description
Add FormattingTuple as possible parameter for log methods.
For example add
Logger#error(Marker marker, FormattingTuple tuple);
and
Logger#error(FormattingTuple tuple);
It is necessary in case it coder wants to use formatted message multiple times:
FormattingTuple tuple = MessageFormatter.format("Can't create an order: {}", e.getLocalizedMessage(), e); //$NON-NLS-1$
LOGGER.error(tuple.getMessage(), e);
throw new IllegalStateException(tuple.getMessage());