From 680199ab94e47d90041193d2702b9db4b8d244fc Mon Sep 17 00:00:00 2001 From: mjkhan21 Date: Mon, 26 Feb 2024 18:14:29 +0900 Subject: [PATCH] =?UTF-8?q?FimsLogFilter=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/cokr/xit/fims/FimsLogFilter.java | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/main/java/cokr/xit/fims/FimsLogFilter.java diff --git a/src/main/java/cokr/xit/fims/FimsLogFilter.java b/src/main/java/cokr/xit/fims/FimsLogFilter.java new file mode 100644 index 00000000..b05ecbc2 --- /dev/null +++ b/src/main/java/cokr/xit/fims/FimsLogFilter.java @@ -0,0 +1,21 @@ +package cokr.xit.fims; + +import org.springframework.stereotype.Component; + +import cokr.xit.base.syslog.ServiceLog; +import cokr.xit.base.syslog.service.bean.LogFilter; + +/**FIMS 서비스 로그 필터 + * @author mjkhan + */ +@Component("logFilter") +public class FimsLogFilter extends LogFilter { + @Override + protected boolean customFilter(ServiceLog log) { + switch (log.getType()) { + case ServiceLog.LOG_INOUT: + case ServiceLog.DOWNLOAD: return true; + default: return false; + } + } +} \ No newline at end of file