web 로그 등록 추가

main
mjkhan21 6 months ago
parent d30e683cf6
commit c14eeeae74

@ -10,11 +10,27 @@ import cokr.xit.base.syslog.service.bean.LogFilter;
*/ */
@Component("logFilter") @Component("logFilter")
public class FimsLogFilter extends LogFilter { public class FimsLogFilter extends LogFilter {
private String[] ignore = {
"login.do", "logout.do",
"/user/", "/authority/", "/code/", "/menu/", "/syslog/", "/error/",
"/stat/stat01/010/info.do"
};
@Override @Override
protected boolean customFilter(ServiceLog log) { protected boolean customFilter(ServiceLog log) {
switch (log.getType()) { switch (log.getType()) {
case ServiceLog.LOG_INOUT: case ServiceLog.LOG_INOUT:
case ServiceLog.DOWNLOAD: return true; case ServiceLog.DOWNLOAD: return true;
case ServiceLog.WEB:
String url = blankIfEmpty(log.getUrl());
for (String str: ignore) {
if (url.contains(str))
return false;
}
if ("modifySvg".equals(log.getMethodName()))
return false;
return true;
default: return false; default: return false;
} }
} }

Loading…
Cancel
Save