From 6f6fd7ecc5c72e05860688e7b5c651ae6ff7c7f0 Mon Sep 17 00:00:00 2001 From: MDietermann Date: Mon, 1 Jun 2026 10:08:25 +0200 Subject: [PATCH] fix: include SourceContext in console log output --- Program.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Program.cs b/Program.cs index a16a198..f054a04 100644 --- a/Program.cs +++ b/Program.cs @@ -8,7 +8,9 @@ using VoxelEngine.Core; Log.Logger = new LoggerConfiguration() .MinimumLevel.Debug() .Enrich.FromLogContext() - .WriteTo.Console(restrictedToMinimumLevel: LogEventLevel.Information) + .WriteTo.Console( + restrictedToMinimumLevel: LogEventLevel.Information, + outputTemplate: "[{Timestamp:HH:mm:ss.fff} {Level:u3}] [{SourceContext}] {Message:lj}{NewLine}{Exception}") .WriteTo.File( path: "logs/voxelengine-.log", rollingInterval: RollingInterval.Day,