From 9b2faa36b4fb42b7d3c3f5ba409722414c036bd3 Mon Sep 17 00:00:00 2001 From: Rinjae Date: Tue, 28 Oct 2025 16:35:19 +0900 Subject: [PATCH] =?UTF-8?q?=EB=94=94=EB=B2=84=EA=B7=B8=20=EB=A1=9C?= =?UTF-8?q?=EA=B7=B8=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kjb-docs/README.md | 15 +++++- src/main/resources/application-kjb_rinjae.yml | 51 +++++++++++++++++++ src/main/resources/logback-debug.xml | 46 +++++++++++++++++ src/main/resources/logback-rinjae.xml | 49 ++++++++++++++++++ src/main/resources/logback-spring.xml | 2 +- 5 files changed, 160 insertions(+), 3 deletions(-) create mode 100644 src/main/resources/application-kjb_rinjae.yml create mode 100644 src/main/resources/logback-rinjae.xml diff --git a/kjb-docs/README.md b/kjb-docs/README.md index 0aa5631..1ecd3c0 100644 --- a/kjb-docs/README.md +++ b/kjb-docs/README.md @@ -8,7 +8,18 @@ ### 디비 접속 방법 Direct -> JNDI 로 변경 - 은행 내부 환경에선 모두 JNDI 사용하기 때문에 서버환경에서 동작하는 profile 내 application.yaml 에서 디비 접속 정보 삭제 -## 긴급 로깅이 필요할 경우 JVM 파라미터 추가 +## 서버 운영 중 긴급 로깅이 필요할 경우 JVM 파라미터 추가 하여 재기동 +- DEBUG 레벨 root 로그 / debug.log 로 파일 작성 ``` --Dlogback.configurationFile=classpath:logback-debug.xml +-Dlogging.config=classpath:logback-debug.xml +``` + +## 참고자료 +### 개발용 파라미터 +``` +-Dlogging.config=classpath:logback-rinjae.xml +-Dinst.Name=devSvr98 +-Duser.language=en +-Duser.country=US +-Dkjb_safedb.mode=fake ``` \ No newline at end of file diff --git a/src/main/resources/application-kjb_rinjae.yml b/src/main/resources/application-kjb_rinjae.yml new file mode 100644 index 0000000..51ba578 --- /dev/null +++ b/src/main/resources/application-kjb_rinjae.yml @@ -0,0 +1,51 @@ +server.port: '30200' + +spring: + jta: + enabled: true + jpa: + properties: + hibernate: + show_sql: false + format_sql: true + use_sql_comments: true + devtools: + restart: + enabled: false + livereload: + enabled: true + thymeleaf: + cache: false + +ems: + datasource: + jdbc-url: jdbc:oracle:thin:@//192.168.240.177:1599/DAPM +# jdbc-url: jdbc:oracle:thin:@//10.14.8.30:11521/ELINKDB + driver-class-name: oracle.jdbc.OracleDriver + username: EMSAPP + password: EMSAPP123! + + +gateway: + datasource: + jdbc-url: jdbc:oracle:thin:@//192.168.240.177:1599/DAPM +# jdbc-url: jdbc:oracle:thin:@//10.14.8.30:11521/ELINKDB + driver-class-name: oracle.jdbc.OracleDriver + username: AGWAPP + password: AGWAPP123! + +portal: + logging: + log-path: C:\eactive\logs + auth-virtual-code: 654321 + +proxy: + targets: + stg: http://localhost:10000/monitoring + prod: http://localhost:10000/monitoring + + # stg: http://inter-ndapiap01.k-bank.com:7090/monitoring + # prod: http://inter-ndapiap01.k-bank.com:7090/monitoring + timeout: + connect: 5000 + read: 5000 diff --git a/src/main/resources/logback-debug.xml b/src/main/resources/logback-debug.xml index d3c786a..64a003f 100644 --- a/src/main/resources/logback-debug.xml +++ b/src/main/resources/logback-debug.xml @@ -1,12 +1,39 @@ + + + + + ${PATTERN_DATE} + + + + ${LOG_PATH}/root.log + + ${LOG_PATH}/backup/root.%d{yyyy-MM-dd}.log + 30 + + ${PATTERN} + + %d{HH:mm:ss.SSS} [%thread] %-5level %logger - %msg%n + + ${LOG_PATH}/hibernate.log + + ${LOG_PATH}/backup/hibernate.%d{yyyy-MM-dd}.log + 7 + + + ${PATTERN} + + + ${LOG_PATH}/debug.log @@ -18,4 +45,23 @@ %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger - %msg%n + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/resources/logback-rinjae.xml b/src/main/resources/logback-rinjae.xml new file mode 100644 index 0000000..99f8815 --- /dev/null +++ b/src/main/resources/logback-rinjae.xml @@ -0,0 +1,49 @@ + + + + + + + ${PATTERN_DATE} + + + + ${LOG_PATH}/root.log + + ${LOG_PATH}/backup/root.%d{yyyy-MM-dd}.log + 30 + + ${PATTERN} + + + + ${LOG_PATH}/hibernate.log + + ${LOG_PATH}/backup/hibernate.%d{yyyy-MM-dd}.log + 7 + + + ${PATTERN} + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/resources/logback-spring.xml b/src/main/resources/logback-spring.xml index 47d84e7..5698dc6 100644 --- a/src/main/resources/logback-spring.xml +++ b/src/main/resources/logback-spring.xml @@ -102,7 +102,7 @@ - > +