<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">There is still a problem: the analogy, that log/logf is similar<br>


to write/writef, is not right anymore. Please correct me if I'm<br>
wrong... but AFAIK write converts every argument to string and<br>
the output device has no mean to choose a preferred<br>
representation of the arguments.<br>
<br>
It will be a surprise if I replace<br>
   log(a, b, c);<br>
with<br>
   logf("%s%s%s", a, b, c);<br>
and possibly get different results.<br>
</blockquote></div><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">If you are just using default logging, they are the same.  Point is that it allows for different results based on logging configuration/implementation.  The logf version says the logging output has to be exactly that string, in all instances.  The other says here is some things I want logged, and the logging can decide how to output them.</div>

<div class="gmail_extra"><br></div><div class="gmail_extra"><br></div></div>