<div dir="ltr"><span class="Apple-style-span" style="border-collapse: collapse; ">Hi guys,</span><div><span class="Apple-style-span" style="border-collapse: collapse; "><div><br></div><div>(I sent this message to the dev-list, but I guess that was the wrong place ;)</div>
<div><br></div><div>I just migrated to&nbsp;<span class="nfakPe" style="background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(255, 255, 136); background-position: initial initial; ">slf4j</span>, and that worked pretty good..</div>
<div><br></div><div>I have some suggestions (ofcouse:))</div><div><br></div><div>A Java5 version which supports varargs. I know that the method sigs support Object[], but varargs add some sugar.</div><div><br></div><div>Currently it is impossible to log an exception and parameterized args.&nbsp;</div>
<div><br></div><div>I suggest the following signatures:</div><div><br></div><div>info(Marker, Throwable, String message)</div><div><div>info(Throwable, String message)<br></div><div><div>info(Marker, String message)<br></div>
<div><br></div><div><div>info(Marker, Throwable, String message, Object[] args)</div><div><div>info(Throwable, String message, Object[] args)</div><div><div>info(Marker, String message, Object[] args)</div><div><br></div>
<div><br></div><div>Object[] args &nbsp;can (and should also) be &nbsp;various helpers like it is now (1 and 2 Object args)</div><div><br></div><div>The idea is to have the message and it&#39;s args as the last arguments.</div><div>
<br></div><div>The problem with the current signatures is that Throwable comes after the message and therefore making the args parameter ambiguous.</div><div><br></div><div>&lt;/rant&gt;</div><div><br></div><font color="#888888"><div>
Joris</div></font></div></div></div></div></div></span><br></div></div>