【log】修改log aop顺序

pull/3/head
fengshuonan 2020-12-27 22:28:44 +08:00
parent 58f829f44f
commit e316a51efb
2 changed files with 2 additions and 12 deletions

View File

@ -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);
}
/**
* apiaopaop
*
* @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);
}
}

View File

@ -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;
}
/**