From 2ef71704325b912d8fd5622a200afce4c4b274c7 Mon Sep 17 00:00:00 2001 From: "review512jwy@163.com" <“review512jwy@163.com”> Date: Fri, 13 Mar 2026 13:30:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=97=A5=E5=BF=97=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + src/main/resources/application.properties | 1 + src/main/resources/logback.xml | 39 +++++++++++++++++++++++ 3 files changed, 41 insertions(+) create mode 100644 src/main/resources/logback.xml diff --git a/.gitignore b/.gitignore index 667aaef..a372265 100644 --- a/.gitignore +++ b/.gitignore @@ -31,3 +31,4 @@ build/ ### VS Code ### .vscode/ +logs/ diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index da030c8..c00fb31 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -2,6 +2,7 @@ spring.application.name=aeon_tcp server.port=${SERVER_PORT:30004} spring.profiles.active=${ACTIVE_ENV:dev} +logging.level.root=${LOG_LEVEL:info} #gateway.tcp.port = 18084 # diff --git a/src/main/resources/logback.xml b/src/main/resources/logback.xml new file mode 100644 index 0000000..7ccf391 --- /dev/null +++ b/src/main/resources/logback.xml @@ -0,0 +1,39 @@ + + + + + + + + + + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n + + + + + + ./logs/app.log + + + ./logs/app.%d{yyyy-MM-dd}.log + + 30 + + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n + UTF-8 + + + + + + + + + + + + + \ No newline at end of file