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

Peter Levart peter.levart at gmail.com
Sat Dec 22 05:18:22 PST 2012


On 12/22/2012 09:45 AM, Mark Thornton wrote:
> 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.
That's true, but for this purpose, i think the messages itself is a key 
into the resource bundle and it's hard to imagine the need to construct 
such keys lazily because of performance concerns...

Regards, Peter

>
> Mark Thornton
>



More information about the lambda-dev mailing list