public abstract class AbstractLogAop extends Object
| Modifier and Type | Field and Description |
|---|---|
private List<String> |
excludeName |
private static Integer |
INDEX_INIT_VALUE |
private static org.slf4j.Logger |
monitor |
private static ThreadLocal<Integer> |
THREAD_LOCAL |
| Constructor and Description |
|---|
AbstractLogAop() |
| Modifier and Type | Method and Description |
|---|---|
Object |
around(org.aspectj.lang.ProceedingJoinPoint point)
around
|
private Object |
getLogVal(org.aspectj.lang.ProceedingJoinPoint point,
Object returnValue) |
private Method |
getTargetMethod(org.aspectj.lang.ProceedingJoinPoint point,
Class<?> targetCls) |
abstract List<String> |
initExcludeList()
initExcludeList
初始化不打印返回值的方法名前缀
|
private void |
logParams(Class<?> targetCls,
Method method,
org.slf4j.Logger logger,
Object logVal) |
private void |
logResponse(Class<?> targetCls,
Method method,
org.slf4j.Logger logger,
Long executeTime,
Object logValue) |
abstract void |
pintCut() |
private static final Integer INDEX_INIT_VALUE
private static final ThreadLocal<Integer> THREAD_LOCAL
private static org.slf4j.Logger monitor
public abstract void pintCut()
public abstract List<String> initExcludeList()
public Object around(org.aspectj.lang.ProceedingJoinPoint point) throws Throwable
Throwableprivate void logParams(Class<?> targetCls, Method method, org.slf4j.Logger logger, Object logVal)
private void logResponse(Class<?> targetCls, Method method, org.slf4j.Logger logger, Long executeTime, Object logValue)
private Method getTargetMethod(org.aspectj.lang.ProceedingJoinPoint point, Class<?> targetCls) throws NoSuchMethodException
NoSuchMethodExceptionCopyright © 2020. All rights reserved.