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=32691>. 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=32691 ------- Additional Comments From [EMAIL PROTECTED] 2004-12-14 12:28 ------- This is some slight adjustments to Linus original suggestion void debug(Object mess1, Object mess2) { if (isDebugEnabled()) { debug(new StringBuffer(mess1).append(mess2)); } } void debug(Object mess1, Object mess2, Object mess3) { if (isDebugEnabled()) { debug(new StringBuffer(mess1).append(mess2).append(mess3)); } } void debug(Object mess1, Object mess2, Object mess3, Object mess4) { if (isDebugEnabled()) { debug(new StringBuffer(mess1).append(mess2).append(mess3).append (mess4)); } } void debug(Object mess1, Object mess2, Object mess3, Object mess4, Object mess5) { if (isDebugEnabled()) { debug(new StringBuffer(mess1).append(mess2).append(mess3).append (mess4).append(mess5)); } } This would allow code such as this in an application - String value = (String)myMap.get(key); if (log.isDebugEnabled()) { log.debug("Got the value " + value + " from the map with key " + key); } to be reduced down to - String value = (String)myMap.get(key); log.debug("Got the value ", value, " from the map with key ", key); removing the clutter from the application. -- 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]
