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=38125>.
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=38125





------- Additional Comments From [EMAIL PROTECTED]  2006-01-04 20:48 -------
How about:

public void debug(String messagePattern, Object[] args) {
  if (repository.isDisabled(Level.DEBUG_INT)) {
    return;
  }
  if (Level.DEBUG.isGreaterOrEqual(this.getEffectiveLevel())) {

    // add format(String, Object[] args) to MessageFormatter
    //
    messagePattern = MessageFormatter.format(messagePattern, args);

    // get last item in argument list
    //
    Object o = args != null && args.length > 0 ? args[args.length - 1] : null;

    forcedLog(FQCN, Level.DEBUG, messagePattern,
              o instanceof Throwable ? (Throwable) o : null);
  }
}

And for JDK 1.5:
public void debug(String messagePattern, Object... args) {
  ...
}


-- 
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