]
Gavin King closed JBSEAM-1186.
------------------------------
Resolution: Rejected
#2 #1 #3 is allowed
log API improvement
-------------------
Key: JBSEAM-1186
URL:
http://jira.jboss.com/jira/browse/JBSEAM-1186
Project: JBoss Seam
Issue Type: Feature Request
Components: Core
Environment: all
Reporter: Mikhail Grushinskiy
Priority: Minor
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.
Another question what happens if you have more parameters after format string than
#n placeholders. I think in such case these parameters should be appended
at the end of the format string in output so not values are lost
.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: