From f6868d2900e1e2b3a20a3bfa55a9b4d612a14b57 Mon Sep 17 00:00:00 2001 From: Kevalkumar Date: Fri, 19 Jun 2026 16:57:51 +0530 Subject: [PATCH] Refactor Serilog configuration to remove file sink from appsettings --- .../appsettings.development.json | 11 +---------- source/AAS.TwinEngine.DataEngine/appsettings.json | 11 +---------- .../appsettings.Development.json | 8 -------- .../AAS.TwinEngine.Plugin.TestPlugin/appsettings.json | 8 -------- 4 files changed, 2 insertions(+), 36 deletions(-) diff --git a/source/AAS.TwinEngine.DataEngine/appsettings.development.json b/source/AAS.TwinEngine.DataEngine/appsettings.development.json index 78cd92b4..daf5537e 100644 --- a/source/AAS.TwinEngine.DataEngine/appsettings.development.json +++ b/source/AAS.TwinEngine.DataEngine/appsettings.development.json @@ -29,8 +29,7 @@ }, "Serilog": { "Using": [ - "Serilog.Sinks.Console", - "Serilog.Sinks.File" + "Serilog.Sinks.Console" ], "MinimumLevel": { "Default": "Information", @@ -47,14 +46,6 @@ "outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff} [{Level}] : {Message} (CorrelationId: {CorrelationId}) (User: {User}) (SourceContext: {SourceContext}) {Details}{NewLine}{Exception}", "restrictedToMinimumLevel": "Verbose" } - }, - { - "Name": "File", - "Args": { - "path": "logs/twinEngine-.log", - "rollingInterval": "Day", - "outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level}] {Message}{NewLine}{Exception}" - } } ], "Enrich": [ diff --git a/source/AAS.TwinEngine.DataEngine/appsettings.json b/source/AAS.TwinEngine.DataEngine/appsettings.json index cb1c0caf..2bfeebe1 100644 --- a/source/AAS.TwinEngine.DataEngine/appsettings.json +++ b/source/AAS.TwinEngine.DataEngine/appsettings.json @@ -29,8 +29,7 @@ }, "Serilog": { "Using": [ - "Serilog.Sinks.Console", - "Serilog.Sinks.File" + "Serilog.Sinks.Console" ], "MinimumLevel": { "Default": "Information", @@ -47,14 +46,6 @@ "outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff} [{Level}] : {Message} (CorrelationId: {CorrelationId}) (User: {User}) (SourceContext: {SourceContext}) {Details}{NewLine}{Exception}", "restrictedToMinimumLevel": "Verbose" } - }, - { - "Name": "File", - "Args": { - "path": "logs/twinEngine-.log", - "rollingInterval": "Day", - "outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level}] {Message}{NewLine}{Exception}" - } } ], "Enrich": [ diff --git a/source/AAS.TwinEngine.Plugin.TestPlugin/appsettings.Development.json b/source/AAS.TwinEngine.Plugin.TestPlugin/appsettings.Development.json index f678d693..6b609de3 100644 --- a/source/AAS.TwinEngine.Plugin.TestPlugin/appsettings.Development.json +++ b/source/AAS.TwinEngine.Plugin.TestPlugin/appsettings.Development.json @@ -38,14 +38,6 @@ "outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff} [{Level}] : {Message} (CorrelationId: {CorrelationId}) (User: {User}) (SourceContext: {SourceContext}) {Details}{NewLine}{Exception}", "restrictedToMinimumLevel": "Verbose" } - }, - { - "Name": "File", - "Args": { - "path": "logs/TestPlugin-.log", - "rollingInterval": "Day", - "outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level}] {Message}{NewLine}{Exception}" - } } ], "Enrich": [ "FromLogContext", "WithThreadId" ], diff --git a/source/AAS.TwinEngine.Plugin.TestPlugin/appsettings.json b/source/AAS.TwinEngine.Plugin.TestPlugin/appsettings.json index 10ee524b..857f358e 100644 --- a/source/AAS.TwinEngine.Plugin.TestPlugin/appsettings.json +++ b/source/AAS.TwinEngine.Plugin.TestPlugin/appsettings.json @@ -38,14 +38,6 @@ "outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff} [{Level}] : {Message} (CorrelationId: {CorrelationId}) (User: {User}) (SourceContext: {SourceContext}) {Details}{NewLine}{Exception}", "restrictedToMinimumLevel": "Verbose" } - }, - { - "Name": "File", - "Args": { - "path": "logs/TestPlugin-.log", - "rollingInterval": "Day", - "outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level}] {Message}{NewLine}{Exception}" - } } ], "Enrich": [ "FromLogContext", "WithThreadId" ],