如何在抛出建议之后拆分仅从顶部开始的日志...

时间:2012-12-19 08:36:36

标签: spring-aop

Logger logger = Logger.getLogger(ThrowsLoggingAdvice.class);

public void afterThrowing(Method method, Object[] arguments, Object target, BatchException ex) throws Throwable {
    BatchException batchException=ex;
    Logger.getLogger(target.getClass()).debug("afterThrowing: BatchException");
    logger.error(ex.getMessage());
}

0 个答案:

没有答案