<div dir="ltr">Unfortunately I don't have any solid numbers. I can definitely tell you that it's significantly faster in production settings when compared to using '+' to build up logging strings, but it will definitely be slower in debug settings when reflection is used. My focus has been to make it as fast as possible under all settings, but to focus more on the production performance, since that's what affects end users the most. <div>
<br></div><div>In my opinion the ability to leave verbose debugging messages including lots of well formatted data in the program for those times when bugs crop up in the field, without degrading performance for every other user of the system is a huge win.</div>
<div style> (*Chris*)</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Feb 8, 2013 at 12:26 AM, Thorbjørn Ravn Andersen <span dir="ltr"><<a href="mailto:thunderaxiom@hotmail.com" target="_blank">thunderaxiom@hotmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="DA" link="blue" vlink="purple"><div><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Out of curiosity, how fast is your solution compared with the standard syntax parser? Problem with logging systems is that they have to share cpu-cycles with the main program, so they need to be fast to avoid slowing the main program down.<u></u><u></u></span></p>
<p class="MsoNormal"><a name="13cb8ea4af81cb72__MailEndCompose"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></a></p><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:logback-user-bounces@qos.ch" target="_blank">logback-user-bounces@qos.ch</a> [mailto:<a href="mailto:logback-user-bounces@qos.ch" target="_blank">logback-user-bounces@qos.ch</a>] <b>On Behalf Of </b>Chris Pratt<br>
<b>Sent:</b> 8. februar 2013 00:54</span></p><div class="im"><br><b>To:</b> logback users list<br><b>Subject:</b> Re: [logback-user] commons-logging -> sl4j -> logback<u></u><u></u></div><p></p></div><div class="im">
<p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">I have a bit of a discussion on why a more robust formatting option is desirable. Check out <a href="http://code.google.com/p/anodyzed/wiki/Log" target="_blank">http://code.google.com/p/anodyzed/wiki/Log</a><u></u><u></u></p>
<div><p class="MsoNormal">and please feel free to ask any questions that come to mind.<u></u><u></u></p><div><p class="MsoNormal"> (*Chris*)<u></u><u></u></p></div></div></div><div><p class="MsoNormal" style="margin-bottom:12.0pt">
<u></u> <u></u></p><div><p class="MsoNormal">On Thu, Feb 7, 2013 at 3:50 PM, Brett Walker <<a href="mailto:brett.walker@geometryit.com" target="_blank">brett.walker@geometryit.com</a>> wrote:<u></u><u></u></p><div>
<div>
<p class="MsoNormal"><span lang="EN-AU">It’s may bad. {} is the only syntax allowed<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-AU"> <u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-AU">It would be a nice addition to have positional, but how warranted is it?<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-AU"> <u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-AU">Brett<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-AU" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><span lang="EN-AU"><u></u><u></u></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:logback-user-bounces@qos.ch" target="_blank">logback-user-bounces@qos.ch</a> [mailto:<a href="mailto:logback-user-bounces@qos.ch" target="_blank">logback-user-bounces@qos.ch</a>] <b>On Behalf Of </b>David Harkness<br>
<b>Sent:</b> Friday, 8 February 2013 10:46 AM</span><span lang="EN-AU"><u></u><u></u></span></p><div><p class="MsoNormal"><span lang="EN-AU"><br><b>To:</b> logback users list<br><b>Subject:</b> Re: [logback-user] commons-logging -> sl4j -> logback<u></u><u></u></span></p>
</div><p class="MsoNormal"><span lang="EN-AU"> <u></u><u></u></span></p><div><div><p class="MsoNormal"><span lang="EN-AU">On Thu, Feb 7, 2013 at 3:35 PM, Brett Walker <<a href="mailto:brett.walker@geometryit.com" target="_blank">brett.walker@geometryit.com</a>> wrote:<u></u><u></u></span></p>
<div><div><div><blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt"><p class="MsoNormal"><span lang="EN-AU">This avoids calling the toString() method on the objects until the log message is actually required to be logged.<u></u><u></u></span></p>
</blockquote></div><p class="MsoNormal"><span lang="EN-AU"><br>Sorry, Brett, I changed the subject without actually changing the subject since it was semi-related. :) I was asking about "{0}" versus "{}".<u></u><u></u></span></p>
</div></div></div><div><p class="MsoNormal"><span lang="EN-AU"> <u></u><u></u></span></p></div><div><p class="MsoNormal"><span lang="EN-AU">David<u></u><u></u></span></p></div><div><p class="MsoNormal"><span lang="EN-AU"> <u></u><u></u></span></p>
</div></div></div></div><p class="MsoNormal"><br>_______________________________________________<br>Logback-user mailing list<br><a href="mailto:Logback-user@qos.ch" target="_blank">Logback-user@qos.ch</a><br><a href="http://mailman.qos.ch/mailman/listinfo/logback-user" target="_blank">http://mailman.qos.ch/mailman/listinfo/logback-user</a><u></u><u></u></p>
</div><p class="MsoNormal"><u></u> <u></u></p></div></div></div></div><br>_______________________________________________<br>
Logback-user mailing list<br>
<a href="mailto:Logback-user@qos.ch">Logback-user@qos.ch</a><br>
<a href="http://mailman.qos.ch/mailman/listinfo/logback-user" target="_blank">http://mailman.qos.ch/mailman/listinfo/logback-user</a><br></blockquote></div><br></div>