로깅 개선 및 EAI 배치 가상 연동 작업 완료

This commit is contained in:
Rinjae
2025-10-16 15:02:35 +09:00
parent c204bbf106
commit f5e689fe51
10 changed files with 246 additions and 47 deletions
@@ -1,7 +1,8 @@
package com.eactive.ext.kjb.ums.test;
import com.eactive.apim.portal.template.entity.MessageRequest;
import com.eactive.ext.kjb.ums.EmailProperty;
import com.eactive.apim.portal.template.entity.MessageRequestEnums;
import com.eactive.ext.kjb.common.KjbProperty;
import com.eactive.ext.kjb.ums.EmailSendModule;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;
@@ -11,18 +12,20 @@ import java.util.concurrent.CompletableFuture;
@Slf4j
public class KjbEmailJobSendModuleTests {
public class KjbEmailSendModuleTests {
@Test
public void test() {
EmailProperty prop = new EmailProperty();
KjbProperty prop = new KjbProperty();
prop.setEaiBatchUrl(null);
prop.setEaiBatchSendDir("D:\\kjb-logs\\sendmail\\snd");
prop.setEaiBatchBackupDir("D:\\kjb-logs\\sendmail\\bak");
prop.setEaiBatchInterfaceId("UAGFF00001UIE");
EmailSendModule service = EmailSendModule.getInstance(prop, null);
MessageRequest messageRequest = new MessageRequest();
messageRequest.setId(UUID.randomUUID().toString());
messageRequest.setMessageCode(MessageRequestEnums.MessageCode.USER_VERIFICATION_EMAIL);
messageRequest.setEmail("dearmai@dearmai.net");
messageRequest.setUsername("김광은");
messageRequest.setSubject("제목 - test");
+22
View File
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
</appender>
<logger name="com.eactive.eai.custom.kjb" level="DEBUG" additivity="false">
<appender-ref ref="CONSOLE" />
</logger>
<logger name="com.eactive.ext.kjb" level="DEBUG" additivity="false">
<appender-ref ref="CONSOLE" />
</logger>
<root level="INFO">
<appender-ref ref="CONSOLE" />
</root>
</configuration>