RFR: JDK-8005263: Logging APIs takes Supplier<String> for message

Mark Thornton mthornton at optrak.com
Sat Dec 22 00:45:37 PST 2012


On 21/12/12 06:28, Henry Jen wrote:
> Since the idea is to avoid unnecessary construction of log messages,
> thus APIs imply formatting are not provided. Thus all forms of logrb and
> log with Parameters are not included.
Avoiding unnecessary formatting wasn't the only justification for 
parameters. It also allows the formatting to take place later using the 
locale of the reader, which isn't necessarily the locale in force at the 
time the message is logged.

Mark Thornton


More information about the lambda-dev mailing list