From e39972357bf8b18091127a019ec7d2cd2f9a8a3f Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Mon, 1 Jun 2026 15:32:38 -0400 Subject: [PATCH] config(mxgateway): translate MEL Logging section to Serilog --- .../appsettings.Development.json | 13 +++++++++---- src/ZB.MOM.WW.MxGateway.Server/appsettings.json | 13 +++++++++---- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/src/ZB.MOM.WW.MxGateway.Server/appsettings.Development.json b/src/ZB.MOM.WW.MxGateway.Server/appsettings.Development.json index 0c208ae..674b2e0 100644 --- a/src/ZB.MOM.WW.MxGateway.Server/appsettings.Development.json +++ b/src/ZB.MOM.WW.MxGateway.Server/appsettings.Development.json @@ -1,8 +1,13 @@ { - "Logging": { - "LogLevel": { + "Serilog": { + "Using": [ "Serilog.Sinks.Console", "Serilog.Sinks.File" ], + "MinimumLevel": { "Default": "Information", - "Microsoft.AspNetCore": "Warning" - } + "Override": { "Microsoft.AspNetCore": "Warning" } + }, + "WriteTo": [ + { "Name": "Console" }, + { "Name": "File", "Args": { "path": "logs/mxgateway-.log", "rollingInterval": "Day" } } + ] } } diff --git a/src/ZB.MOM.WW.MxGateway.Server/appsettings.json b/src/ZB.MOM.WW.MxGateway.Server/appsettings.json index 63928c7..bc565ee 100644 --- a/src/ZB.MOM.WW.MxGateway.Server/appsettings.json +++ b/src/ZB.MOM.WW.MxGateway.Server/appsettings.json @@ -1,9 +1,14 @@ { - "Logging": { - "LogLevel": { + "Serilog": { + "Using": [ "Serilog.Sinks.Console", "Serilog.Sinks.File" ], + "MinimumLevel": { "Default": "Information", - "Microsoft.AspNetCore": "Warning" - } + "Override": { "Microsoft.AspNetCore": "Warning" } + }, + "WriteTo": [ + { "Name": "Console" }, + { "Name": "File", "Args": { "path": "logs/mxgateway-.log", "rollingInterval": "Day" } } + ] }, "AllowedHosts": "*", "MxGateway": {