mirror of https://gitee.com/stylefeng/roses
【log】修改log aop顺序
parent
58f829f44f
commit
e316a51efb
|
@ -35,14 +35,4 @@ public class LogConfigExpander {
|
|||
return ConfigContext.me().getSysConfigValueWithDefault("SYS_LOG_FILE_SAVE_PATH_LINUX", String.class, LogFileConstants.DEFAULT_FILE_SAVE_PATH_LINUX);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取接口api的aop日志记录的aop的顺序
|
||||
*
|
||||
* @author fengshuonan
|
||||
* @date 2020/10/28 17:19
|
||||
*/
|
||||
public static Integer getRequestApiLogAopSort() {
|
||||
return ConfigContext.me().getSysConfigValueWithDefault("SYS_REQUEST_API_LOG_AOP_SORT", Integer.class, LogFileConstants.DEFAULT_API_LOG_AOP_SORT);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@ package cn.stylefeng.roses.kernel.log.modular.requestapi.aop;
|
|||
|
||||
import cn.stylefeng.roses.kernel.log.api.LogRecordApi;
|
||||
import cn.stylefeng.roses.kernel.log.api.constants.LogConstants;
|
||||
import cn.stylefeng.roses.kernel.log.api.expander.LogConfigExpander;
|
||||
import cn.stylefeng.roses.kernel.log.api.constants.LogFileConstants;
|
||||
import cn.stylefeng.roses.kernel.log.api.factory.LogRecordFactory;
|
||||
import cn.stylefeng.roses.kernel.log.api.factory.appender.AuthedLogAppender;
|
||||
import cn.stylefeng.roses.kernel.log.api.factory.appender.HttpLogAppender;
|
||||
|
@ -145,7 +145,7 @@ public class RequestApiLogRecordAop implements Ordered {
|
|||
|
||||
@Override
|
||||
public int getOrder() {
|
||||
return LogConfigExpander.getRequestApiLogAopSort();
|
||||
return LogFileConstants.DEFAULT_API_LOG_AOP_SORT;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue