|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.student.common.util.SimpleExceptionLoggingAdvice
public class SimpleExceptionLoggingAdvice
Advice to log exceptions.
Default loggingLevel=STACKTRACE and exceptionLoggingType=THROWABLE.
Spring configuration example
<aop:config>
<aop:aspect id="exceptionLoggingAspect" ref="exceptionLoggingAdvice" order="2">
<aop:after-throwing
pointcut="execution(* org.kuali.student.lum.lu.service.*.*(..))"
method="afterThrowing" throwing="t" />
</aop:aspect>
</aop:config>
<bean id="exceptionLoggingAdvice" class="org.kuali.student.common.util.SimpleExceptionLoggingAdvice">
<property name="loggingLevel" value="INFO" />
<property name="exceptionLoggingType" value="RUNTIME" />
</bean>
| Constructor Summary | |
|---|---|
SimpleExceptionLoggingAdvice()
Constructor. |
|
| Method Summary | |
|---|---|
void |
afterThrowing(org.aspectj.lang.JoinPoint jp,
Throwable t)
Catches the exception being thrown. |
void |
setExceptionLoggingType(String exceptionType)
Sets the type of exception to log. |
void |
setLoggingLevel(String loggingLevel)
Sets the logging level. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleExceptionLoggingAdvice()
| Method Detail |
|---|
public void setLoggingLevel(String loggingLevel)
Logging levels:
loggingLevel - Logging levelpublic void setExceptionLoggingType(String exceptionType)
RUNTIME).
Exception types:
exceptionType - exception logging type
public void afterThrowing(org.aspectj.lang.JoinPoint jp,
Throwable t)
throws Throwable
jp - Aspect join pointt - Exception being thrown
Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||