From 205959438766d0957570a9cce6516b02356989bf Mon Sep 17 00:00:00 2001 From: PicturePark1101 Date: Fri, 17 Jan 2025 19:26:38 +0900 Subject: [PATCH 1/2] =?UTF-8?q?refactor=20:=20=EB=A1=9C=EA=B7=B8=ED=8C=8C?= =?UTF-8?q?=EC=9D=BC=20=EC=95=BD=EA=B0=84=20=EC=88=98=EC=A0=95=20#270?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/logback-appender.xml | 118 +++++------------------- src/main/resources/logback-local.xml | 13 +-- 2 files changed, 23 insertions(+), 108 deletions(-) diff --git a/src/main/resources/logback-appender.xml b/src/main/resources/logback-appender.xml index 68399d2..021dec8 100644 --- a/src/main/resources/logback-appender.xml +++ b/src/main/resources/logback-appender.xml @@ -2,128 +2,52 @@ - - - - + - - - ${CONSOLE_LOG_PATTERN} - - - - - - ${CONSOLE_LOG_PATTERN} - - - - - ${LOG_PATH}/console/info-${SERVER_INFO}-console.log - - INFO - ACCEPT - DENY - - - ${LOG_PATH}/console/info-${SERVER_INFO}-console-%d{yyyy-MM-dd}.%i.txt - 20MB - 7 - 100MB - - - ${INFO_LOG_PATTERN} - - + - - ${LOG_PATH}/console/warn-${SERVER_INFO}-console.log - - WARN - ACCEPT - DENY - - - ${LOG_PATH}/warn-console/${SERVER_INFO}-console-%d{yyyy-MM-dd}.%i.txt - 20MB - 7 - 100MB - - - ${WARN_LOG_PATTERN} - - - - - ${LOG_PATH}/console/error-${SERVER_INFO}-console.log - - ERROR - ACCEPT - DENY - - - ${LOG_PATH}/console/error-${SERVER_INFO}-console-%d{yyyy-MM-dd}.%i.txt - 20MB - 7 - 100MB - + - ${ERROR_LOG_PATTERN} + ${CONSOLE_LOG_PATTERN} - - ${LOG_PATH}/api/info-${SERVER_INFO}-api.log - - INFO - ACCEPT - DENY - - - ${LOG_PATH}/api/info-${SERVER_INFO}-api-%d{yyyy-MM-dd}.%i.txt - 20MB - 7 - 100MB - + - ${INFO_LOG_PATTERN} + ${CONSOLE_LOG_PATTERN} - - ${LOG_PATH}/api/warn-${SERVER_INFO}-api.log - - WARN - ACCEPT - DENY - + + ${LOG_PATH}/console/${SERVER_INFO}-console.log - ${LOG_PATH}/api/warn-${SERVER_INFO}-api-%d{yyyy-MM-dd}.%i.txt + ${LOG_PATH}/console/${SERVER_INFO}-console-%d{yyyy-MM-dd}.%i.txt 20MB 7 100MB - ${WARN_LOG_PATTERN} + ${LOG_PATTERN} + + + - - ${LOG_PATH}/api/error-${SERVER_INFO}-api.log - - ERROR - ACCEPT - DENY - + + ${LOG_PATH}/api/${SERVER_INFO}-api.log - ${LOG_PATH}/api/error-${SERVER_INFO}-api-%d{yyyy-MM-dd}.%i.txt + ${LOG_PATH}/api/${SERVER_INFO}-api-%d{yyyy-MM-dd}.%i.txt 20MB 7 100MB - ${ERROR_LOG_PATTERN} + ${LOG_PATTERN} \ No newline at end of file diff --git a/src/main/resources/logback-local.xml b/src/main/resources/logback-local.xml index 2540ac8..3cdf7e2 100644 --- a/src/main/resources/logback-local.xml +++ b/src/main/resources/logback-local.xml @@ -1,23 +1,14 @@ - - + - - - + - - - - - - \ No newline at end of file From 5adf5dae10d7e269548873cd3247834a69085d42 Mon Sep 17 00:00:00 2001 From: PicturePark1101 Date: Fri, 17 Jan 2025 19:36:05 +0900 Subject: [PATCH 2/2] =?UTF-8?q?refactor=20:=20=EB=A1=9C=EA=B7=B8=20?= =?UTF-8?q?=ED=8C=8C=EC=9D=BC=20=EA=B2=BD=EB=A1=9C=20=EC=A7=80=EC=A0=95=20?= =?UTF-8?q?#270?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/logback-appender.xml | 118 +++++++++++++++++++----- src/main/resources/logback-dev.xml | 3 + src/main/resources/logback-local.xml | 13 ++- src/main/resources/logback-prod.xml | 3 + 4 files changed, 114 insertions(+), 23 deletions(-) diff --git a/src/main/resources/logback-appender.xml b/src/main/resources/logback-appender.xml index 021dec8..ec60463 100644 --- a/src/main/resources/logback-appender.xml +++ b/src/main/resources/logback-appender.xml @@ -2,52 +2,128 @@ - - - + + + + + + ${CONSOLE_LOG_PATTERN} + + + + + + ${CONSOLE_LOG_PATTERN} + + + + + ${LOG_PATH}/console/info-${SERVER_INFO}-console.log + + INFO + ACCEPT + DENY + + + ${LOG_PATH}/console/info-${SERVER_INFO}-console-%d{yyyy-MM-dd}.%i.txt + 20MB + 7 + 100MB + - ${CONSOLE_LOG_PATTERN} + ${INFO_LOG_PATTERN} - + + ${LOG_PATH}/console/warn-${SERVER_INFO}-console.log + + WARN + ACCEPT + DENY + + + ${LOG_PATH}/console/warn-${SERVER_INFO}-console-%d{yyyy-MM-dd}.%i.txt + 20MB + 7 + 100MB + + + ${WARN_LOG_PATTERN} + + + + + ${LOG_PATH}/console/error-${SERVER_INFO}-console.log + + ERROR + ACCEPT + DENY + + + ${LOG_PATH}/console/error-${SERVER_INFO}-console-%d{yyyy-MM-dd}.%i.txt + 20MB + 7 + 100MB + + + ${ERROR_LOG_PATTERN} + + + + + ${LOG_PATH}/api/info-${SERVER_INFO}-api.log + + INFO + ACCEPT + DENY + + + ${LOG_PATH}/api/info-${SERVER_INFO}-api-%d{yyyy-MM-dd}.%i.txt + 20MB + 7 + 100MB + - ${CONSOLE_LOG_PATTERN} + ${INFO_LOG_PATTERN} - - ${LOG_PATH}/console/${SERVER_INFO}-console.log + + ${LOG_PATH}/api/warn-${SERVER_INFO}-api.log + + WARN + ACCEPT + DENY + - ${LOG_PATH}/console/${SERVER_INFO}-console-%d{yyyy-MM-dd}.%i.txt + ${LOG_PATH}/api/warn-${SERVER_INFO}-api-%d{yyyy-MM-dd}.%i.txt 20MB 7 100MB - ${LOG_PATTERN} + ${WARN_LOG_PATTERN} - - - - - ${LOG_PATH}/api/${SERVER_INFO}-api.log + + ${LOG_PATH}/api/error-${SERVER_INFO}-api.log + + ERROR + ACCEPT + DENY + - ${LOG_PATH}/api/${SERVER_INFO}-api-%d{yyyy-MM-dd}.%i.txt + ${LOG_PATH}/api/error-${SERVER_INFO}-api-%d{yyyy-MM-dd}.%i.txt 20MB 7 100MB - ${LOG_PATTERN} + ${ERROR_LOG_PATTERN} \ No newline at end of file diff --git a/src/main/resources/logback-dev.xml b/src/main/resources/logback-dev.xml index 5e55f95..da6fb02 100644 --- a/src/main/resources/logback-dev.xml +++ b/src/main/resources/logback-dev.xml @@ -2,6 +2,9 @@ + + + diff --git a/src/main/resources/logback-local.xml b/src/main/resources/logback-local.xml index 3cdf7e2..a6d9db8 100644 --- a/src/main/resources/logback-local.xml +++ b/src/main/resources/logback-local.xml @@ -1,14 +1,23 @@ - + + - + + + + + + + + + \ No newline at end of file diff --git a/src/main/resources/logback-prod.xml b/src/main/resources/logback-prod.xml index 3b879ce..06cb88e 100644 --- a/src/main/resources/logback-prod.xml +++ b/src/main/resources/logback-prod.xml @@ -2,6 +2,9 @@ + + +