From 02937360eac51007b66b8ce0dca5666c8c212605 Mon Sep 17 00:00:00 2001 From: TekH Date: Mon, 3 Nov 2025 11:25:21 +0100 Subject: [PATCH] chore(Finalizer.appsettings): update Serilog configuration to increase log verbosity and retention - Changed default minimum log level from Information to Verbose. - Updated console sink to use Verbose level. - Renamed and consolidated log files for Verbose, Debug, Info, Warning, Error, and Fatal levels. - Increased retained file count from 7 to 30 for all log levels. --- EnvelopeGenerator.Finalizer/appsettings.json | 41 +++++++++++++++----- 1 file changed, 31 insertions(+), 10 deletions(-) diff --git a/EnvelopeGenerator.Finalizer/appsettings.json b/EnvelopeGenerator.Finalizer/appsettings.json index ae54b549..aaa6f152 100644 --- a/EnvelopeGenerator.Finalizer/appsettings.json +++ b/EnvelopeGenerator.Finalizer/appsettings.json @@ -12,7 +12,7 @@ "Serilog": { "Using": [ "Serilog.Sinks.Console", "Serilog.Sinks.File" ], "MinimumLevel": { - "Default": "Information", + "Default": "Verbose", "Override": { "Microsoft": "Warning", "System": "Warning" @@ -22,46 +22,67 @@ { "Name": "Console", "Args": { + "restrictedToMinimumLevel": "Verbose", "outputTemplate": "[{Timestamp:HH:mm:ss} {Level:u3}] {Message:lj}{NewLine}{Exception}" } }, { "Name": "File", "Args": { - "path": "E:/LogFiles/Digital Data/signFlow.Finalizer/{Date}.Info.log", + "path": "E:/LogFiles/Digital Data/signFlow.Finalizer/log.Verbose-.txt", + "rollingInterval": "Day", + "restrictedToMinimumLevel": "Verbose", + "retainedFileCountLimit": 30, + "outputTemplate": "[{Timestamp:yyyy-MM-dd HH:mm:ss} {Level:u3}] {Message:lj}{NewLine}{Exception}" + } + }, + { + "Name": "File", + "Args": { + "path": "E:/LogFiles/Digital Data/signFlow.Finalizer/log.Debug-.txt", + "rollingInterval": "Day", + "restrictedToMinimumLevel": "Debug", + "retainedFileCountLimit": 30, + "outputTemplate": "[{Timestamp:yyyy-MM-dd HH:mm:ss} {Level:u3}] {Message:lj}{NewLine}{Exception}" + } + }, + { + "Name": "File", + "Args": { + "path": "E:/LogFiles/Digital Data/signFlow.Finalizer/log.Info-.txt", "rollingInterval": "Day", "restrictedToMinimumLevel": "Information", - "retainedFileCountLimit": 7, + "retainedFileCountLimit": 30, "outputTemplate": "[{Timestamp:yyyy-MM-dd HH:mm:ss} {Level:u3}] {Message:lj}{NewLine}{Exception}" } }, { "Name": "File", "Args": { - "path": "E:/LogFiles/Digital Data/signFlow.Finalizer/{Date}.Warning.log", + "path": "E:/LogFiles/Digital Data/signFlow.Finalizer/log.Warning-.txt", "rollingInterval": "Day", "restrictedToMinimumLevel": "Warning", - "retainedFileCountLimit": 7, + "retainedFileCountLimit": 30, "outputTemplate": "[{Timestamp:yyyy-MM-dd HH:mm:ss} {Level:u3}] {Message:lj}{NewLine}{Exception}" } }, { "Name": "File", "Args": { - "path": "E:/LogFiles/Digital Data/signFlow.Finalizer/{Date}.Error.log", + "path": "E:/LogFiles/Digital Data/signFlow.Finalizer/log.Error-.txt", "rollingInterval": "Day", "restrictedToMinimumLevel": "Error", - "retainedFileCountLimit": 7, + "retainedFileCountLimit": 30, "outputTemplate": "[{Timestamp:yyyy-MM-dd HH:mm:ss} {Level:u3}] {Message:lj}{NewLine}{Exception}" } }, { "Name": "File", "Args": { - "path": "E:/LogFiles/Digital Data/signFlow.Finalizer/{Date}.Debug.log", + "path": "E:/LogFiles/Digital Data/signFlow.Finalizer/log.Fatal-.txt", "rollingInterval": "Day", - "restrictedToMinimumLevel": "Debug", - "retainedFileCountLimit": 7, + "restrictedToMinimumLevel": "Fatal", + "retainedFileCountLimit": 30, "outputTemplate": "[{Timestamp:yyyy-MM-dd HH:mm:ss} {Level:u3}] {Message:lj}{NewLine}{Exception}" } }