From 03880fa1a0babfaf770a47f08e1439e080dd1d05 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 cda208b..e7b3f7c 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)