Details
-
Improvement
-
Resolution: Fixed
-
None
-
1.6.x
-
None
-
Operating System: Windows NT
Platform: PC
-
enhancement
-
P1
-
197
Description
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.