[logback-user] Always defer message creation?
David Roussel
nabble at diroussel.xsmail.com
Wed Aug 7 15:27:01 CEST 2013
Yes it's a good idea. In general.
If you're really concerned about the performance then measure it.
David
On 7 Aug 2013, at 14:09, Xavier Outhier <xouthier at yahoo.fr> wrote:
> Hi,
>
> I would like to know if it will be a good idea to replace in the code
> log.debug(request.toString());
> into
> log.debug("{}",request);
> It sounds to me a little overkill but could potentially increase the performance of the application in a non debug mode.
>
> Thanks,
>
> Xavier.
> _______________________________________________
> Logback-user mailing list
> Logback-user at qos.ch
> http://mailman.qos.ch/mailman/listinfo/logback-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/logback-user/attachments/20130807/9479aa29/attachment.html>
More information about the Logback-user
mailing list