<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 24.03.2010, at 16:18, Pavel Bortnovskiy wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><br><font size="2" face="sans-serif">Hello:</font> <br> <br><font size="2" face="sans-serif">I am a new subscriber to this list, so please forgive me if these questions have already been asked and answered.</font> <br> <br><font size="2" face="sans-serif">Being quite experienced with log4j, migrating to Logback would probably be a relatively easy exercise. However, while reading the manual, I have a few questions, which might be best addressed to the developers, rather than the users.</font> <br> <br><font size="2" face="sans-serif">1) using parameterized logging instead of wrapping the log statment in a conditional isEnabled, is very convenient, however I wonder whether there is an implementation of printf</font> <br><font size="2" face="sans-serif">function (or whether there are plans to do so). </font><a href="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Formatter.html#format(java.lang.String, java.lang.Object...)"><font size="3" color="blue"><u>http://java.sun.com/j2se/1.5.0/docs/api/java/util/Formatter.html#format(java.lang.String, java.lang.Object...)</u></font></a><font size="3"> </font> <br><font size="2" face="sans-serif">Implementation of log statements with such functionality and a variable arg list would be fairly trivial, but I found no references to such in Logback Javadocs, FAQ or search engine queries.</font> <br> <br><font size="2" face="sans-serif">2) If the answer to (1) is NO, then is there an easy way to extend Logback to incorporate such functions?</font> <br></blockquote><div><br></div><div>Hi Pavel,</div><div><br></div><div>the answer is no, but varargs as well as extension of the parameterization mechanism is currently discussed in the following thread on the SLF4J-Dev list:</div><div><a href="http://thread.gmane.org/gmane.comp.java.slf4j.devel/2805">http://thread.gmane.org/gmane.comp.java.slf4j.devel/2805</a></div><div><br></div><div>Cheers,</div><div>Joern.</div><div><br></div></div></body></html>