From c14eeeae745af06c16d48153b5c796f3a102cbe7 Mon Sep 17 00:00:00 2001 From: mjkhan21 Date: Tue, 14 May 2024 10:01:10 +0900 Subject: [PATCH] =?UTF-8?q?web=20=EB=A1=9C=EA=B7=B8=20=EB=93=B1=EB=A1=9D?= =?UTF-8?q?=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/cokr/xit/fims/FimsLogFilter.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/main/java/cokr/xit/fims/FimsLogFilter.java b/src/main/java/cokr/xit/fims/FimsLogFilter.java index b05ecbc2..b67b0b0b 100644 --- a/src/main/java/cokr/xit/fims/FimsLogFilter.java +++ b/src/main/java/cokr/xit/fims/FimsLogFilter.java @@ -10,11 +10,27 @@ import cokr.xit.base.syslog.service.bean.LogFilter; */ @Component("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 protected boolean customFilter(ServiceLog log) { switch (log.getType()) { case ServiceLog.LOG_INOUT: 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; } }