Hi guys,<br><br>I use slf4j log API for long time, one thing i feel inconvenience about it the default number of log API parameters is 2. For instance:<br> public void warn(String format, Object arg1, Object arg2);<br><br>
Usually i log something in the 'who did what, and result is what ' style. e.g. <br> LOG.info("User {} update post {}, result is {}", userId, postId, true); <br>but the max number of parameters of this API is 2, so i need to write it like this:<br>
LOG.info("User {} update post {}, result is {}",new Object[]{ userId, postId, true});<br> <br>I think the number of parameters of this API should be 3 and 3 is the most common cases for a meaning log info.<br>
<br>Is this true or what are your concerns when you design the APIs?<br><br>Best regards,<br><br>George <br><br>