From 737135e3ac2d022cc6e805dfedab7ead069bde5d Mon Sep 17 00:00:00 2001 From: PicturePark1101 Date: Fri, 17 Jan 2025 15:52:44 +0900 Subject: [PATCH 1/2] =?UTF-8?q?feat=20:=20=EB=A1=9C=EA=B9=85=20=EC=84=A4?= =?UTF-8?q?=EC=A0=95=20=ED=8C=8C=EC=9D=BC=20=EC=83=9D=EC=84=B1=20#270?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/logback-appender.xml | 129 ++++++++++++++++++++++++ src/main/resources/logback-dev.xml | 21 ++++ src/main/resources/logback-local.xml | 23 +++++ src/main/resources/logback-prod.xml | 21 ++++ 4 files changed, 194 insertions(+) create mode 100644 src/main/resources/logback-appender.xml create mode 100644 src/main/resources/logback-dev.xml create mode 100644 src/main/resources/logback-local.xml create mode 100644 src/main/resources/logback-prod.xml diff --git a/src/main/resources/logback-appender.xml b/src/main/resources/logback-appender.xml new file mode 100644 index 0000000..68399d2 --- /dev/null +++ b/src/main/resources/logback-appender.xml @@ -0,0 +1,129 @@ + + + + + + + + + + + + ${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} + + + + + ${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} + + + + + ${LOG_PATH}/api/warn-${SERVER_INFO}-api.log + + WARN + ACCEPT + DENY + + + ${LOG_PATH}/api/warn-${SERVER_INFO}-api-%d{yyyy-MM-dd}.%i.txt + 20MB + 7 + 100MB + + + ${WARN_LOG_PATTERN} + + + + + ${LOG_PATH}/api/error-${SERVER_INFO}-api.log + + ERROR + ACCEPT + DENY + + + ${LOG_PATH}/api/error-${SERVER_INFO}-api-%d{yyyy-MM-dd}.%i.txt + 20MB + 7 + 100MB + + + ${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 new file mode 100644 index 0000000..fb66887 --- /dev/null +++ b/src/main/resources/logback-dev.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/resources/logback-local.xml b/src/main/resources/logback-local.xml new file mode 100644 index 0000000..2540ac8 --- /dev/null +++ b/src/main/resources/logback-local.xml @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/resources/logback-prod.xml b/src/main/resources/logback-prod.xml new file mode 100644 index 0000000..3b879ce --- /dev/null +++ b/src/main/resources/logback-prod.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file From 5863b0a740170442b4ef0e207ad05ea66d75885d Mon Sep 17 00:00:00 2001 From: PicturePark1101 Date: Fri, 17 Jan 2025 17:56:56 +0900 Subject: [PATCH 2/2] =?UTF-8?q?refactor=20:=20=EC=A3=BC=EC=84=9D=20?= =?UTF-8?q?=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-dev.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/logback-dev.xml b/src/main/resources/logback-dev.xml index fb66887..5e55f95 100644 --- a/src/main/resources/logback-dev.xml +++ b/src/main/resources/logback-dev.xml @@ -9,7 +9,7 @@ - +