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