类 LogAspect
java.lang.Object
com.iplatform.base.support.LogAspect
操作日志切面对象定义。
1)业务在自己的调用方法上添加注解即可自动完成操作日志记录
2)注解示例:-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voiddoAfterReturning(org.aspectj.lang.JoinPoint joinPoint, com.walker.web.log.Log logAnnotation, Object jsonResult) 处理完请求后执行voiddoAfterThrowing(org.aspectj.lang.JoinPoint joinPoint, com.walker.web.log.Log logAnnotation, Exception e) 拦截异常操作voidsetEnableLog(boolean enableLog) 配置是否打开或关闭日志写入。voidsetLogService(LogServiceImpl logService) voidsetSecuritySpi(SecuritySpi securitySpi)
-
字段详细资料
-
logger
protected final transient org.slf4j.Logger logger
-
-
构造器详细资料
-
LogAspect
public LogAspect()
-
-
方法详细资料
-
setEnableLog
public void setEnableLog(boolean enableLog) 配置是否打开或关闭日志写入。- 参数:
enableLog-
-
setLogService
-
setSecuritySpi
-
doAfterReturning
public void doAfterReturning(org.aspectj.lang.JoinPoint joinPoint, com.walker.web.log.Log logAnnotation, Object jsonResult) 处理完请求后执行- 参数:
joinPoint- 切点
-
doAfterThrowing
public void doAfterThrowing(org.aspectj.lang.JoinPoint joinPoint, com.walker.web.log.Log logAnnotation, Exception e) 拦截异常操作- 参数:
joinPoint- 切点e- 异常
-