From 7f6e1fc6cb62e919d8efa1b956856bc5a1842a83 Mon Sep 17 00:00:00 2001 From: francescods Date: Thu, 27 Mar 2025 16:08:25 +0100 Subject: [PATCH] gestione rolling logs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit di default ogni file di log è giornaliero e può essere al max 100MB. Il totale dei files di log può essere di 5GB e i files verranno cancellati ogni 15 giorni --- src/main/resources/logback.xml | 34 +++++++++++++++++++++++++++++----- 1 file changed, 29 insertions(+), 5 deletions(-) diff --git a/src/main/resources/logback.xml b/src/main/resources/logback.xml index 9714b07..1e12d8c 100644 --- a/src/main/resources/logback.xml +++ b/src/main/resources/logback.xml @@ -1,19 +1,43 @@ + + %d{YYYY-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n - - ./logFile.log + + + + ./log/logFile.log true + + + + + ./log/logFile.%d{yyyy-MM-dd}.%i.log + + + 100MB + + + 15 + + + 5GB + + %d{YYYY-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n - - + + + + + - \ No newline at end of file + +