From 5a7e9ed74ee4ffb7a34cc9708f7de91c9ccd22a3 Mon Sep 17 00:00:00 2001 From: Casper Sparre Date: Tue, 14 Oct 2025 00:35:43 +0200 Subject: [PATCH] Fixed missing LogContext enrichment --- OF DL/Program.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/OF DL/Program.cs b/OF DL/Program.cs index 7b63ad5..da787ea 100644 --- a/OF DL/Program.cs +++ b/OF DL/Program.cs @@ -112,6 +112,7 @@ public class Program levelSwitch.MinimumLevel = LogEventLevel.Error; //set initial level (until we've read from config) Log.Logger = new LoggerConfiguration() + .Enrich.FromLogContext() .Enrich.WithProperty("Application", "OF_DL") .Enrich.WithProperty("StartTime", $"{DateTime.Now:yyyy-MM-dd HH:mm:ss} ") .Enrich.WithProperty("MachineName", Environment.MachineName)