[slf4j-dev] [Bug 197] New: XLogger enhancements

bugzilla-daemon at pixie.qos.ch bugzilla-daemon at pixie.qos.ch
Fri Sep 3 18:19:57 CEST 2010


http://bugzilla.slf4j.org/show_bug.cgi?id=197

           Summary: XLogger enhancements
           Product: SLF4J
           Version: 1.6.x
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: slf4j-ext
        AssignedTo: slf4j-dev at qos.ch
        ReportedBy: kalgon at hotmail.com


Hi, I would like to propose to improve some methods in XLogger:

<T> T exit(T result);
<T extends Throwable> T throwing(T throwable);
<T extends Throwable> T throwing(Level level, T throwable);

so I could use them as follows:

public void myMethod(String myParam, Object myOtherParam) {

  this.xlogger.entry(myParam, myOtherParam);

  if (conditionNotMet) {
    throw this.xlogger.throwing(new ConditionNotMetException("wrong"));
  }

  return this.xlogger.exit(myParam.concat(myOtherParam));
}

Well maybe it's too much too ask after all the debates about varargs support
over the years =)

Xavier.


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


More information about the slf4j-dev mailing list