<div dir="ltr">Hi guys,<div><br></div><div>I just migrated to slf4j, 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. </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 can (and should also) be 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'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></rant></div><div><br></div><div>Joris</div>
</div></div></div></div></div></div>