It would seem fairly common to want to do something like:
for (int i = 0; i < 100; i++) {
logger.debug("Iteration {}", i);
}
However, I believe the current SLF4J would incur an boxing cost to
create an Integer object on each iteration regardless of whether the
message would be dispatched and would require an explicit new Integer
(i) prior to JDK 1.5.
Any thoughts on adding methods like:
void debug(String pattern, int arg1);
void debug(String pattern, double arg1);
void debug(String pattern, boolean arg1);
_______________________________________________
dev mailing list
[email protected]
http://slf4j.org/mailman/listinfo/dev