[jboss-user] [JBoss Seam] - Seam varargs logging

mgrouch do-not-reply at jboss.com
Thu Apr 12 21:58:33 EDT 2007


Instead of
log.debug("Creating new order for user: #0 product: #1 quantity: #2", user.username(), product.name(), quantity);

#0, #1, #2

why couldn't we just always use 

#? 

Parameters are already ordered. There is no need to number them in the format string, this will be just another source of errors.

Thanks


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036927#4036927

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036927



More information about the jboss-user mailing list