DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43204>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43204





------- Additional Comments From [EMAIL PROTECTED]  2007-08-23 14:29 -------
It would be great to see formatting capabilities built-in to the core log4j
logger in the next major release, rather than having a wrapper. Failing that, I
think a wrapper that lets you make all the usual logger calls but supporting
formatting is a lot more usable than a helper class with static methods. A
wrapper could even be done with a subclass of Logger.

Note that a key requirement for this is to not format strings unless the log is
enabled for a given level. The code you pointed to in the companion will format
strings, generating garbage, even if the given logger is disabled. Creating
arrays of arguments is also probably another source of inefficiency (that could
be addressed by special cases for say 4 or fewer arguments).

It's also valuable to have exception logging with arguments for formatting.


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to