3 Replies Latest reply on Apr 17, 2007 11:46 PM by mgrouch

    Seam varargs logging

    mgrouch Expert

      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