From bfc6706de6ff5b4f9f205cb30b7480c8c4ec5f43 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Thu, 21 May 2026 14:23:01 +0000 Subject: [PATCH] NM-24: Configure Logback (port log4Net.xml) Add logback-spring.xml that replicates the rolling file appender from the legacy log4Net.xml configuration: - File output to logFiles/myapp.log with append mode - Size-based rolling policy (10MB max, 5 backup files) - Log pattern with date, thread, level, logger, and message - Console appender enabled for the dev Spring profile --- .../src/main/resources/logback-spring.xml | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 eShopModernizedSpringSolution/src/main/resources/logback-spring.xml diff --git a/eShopModernizedSpringSolution/src/main/resources/logback-spring.xml b/eShopModernizedSpringSolution/src/main/resources/logback-spring.xml new file mode 100644 index 00000000..5cb4e538 --- /dev/null +++ b/eShopModernizedSpringSolution/src/main/resources/logback-spring.xml @@ -0,0 +1,35 @@ + + + + + + + %date [%thread] %X{activityId} %-5level %logger - %X{requestInfo}%n%message%n%n + + + + + + logFiles/myapp.log + true + + logFiles/myapp.%i.log + 1 + 5 + + + 10MB + + + %date [%thread] %X{activityId} %-5level %logger - %X{requestInfo}%n%message%n%n + + + + + + + + + + +