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=31155>. 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=31155 [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED ------- Additional Comments From [EMAIL PROTECTED] 2007-01-26 18:57 ------- The method getResourceBundleString() is really just for internal use. The purpose of the class is to generate logging statements, not format strings, which is why the formatting aspect is not included. I understand your need, but I don't really agree that it is appropriate to expose such methods arbitrarily. Log 1.3 *does* allow you to specify your own org.apache.log4j.spi.LoggerFactory, where you can create specialized subclasses of Logger that suit your own needs. In your case, you could create a method such as: /** * Localized log and throw. */ public void llogThrow(Level level, String key, Object param[]) throws Exception { String msg = getResourceBundleString(key, param); log(level, msg); throw new Exception(msg); } Adding a protected getResourceBundleString(String, Object[]) does seems useful. I'll check in with the Log4J dev folks on protected -> public, though. -- 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]
