From 0da4341b99b18d2d6a86007c5057596640585c59 Mon Sep 17 00:00:00 2001 From: Timothy Schenk Date: Sat, 31 Dec 2022 17:30:27 +0100 Subject: [PATCH] Include scopes in logger --- Server/Program.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Server/Program.cs b/Server/Program.cs index 9316528..058b495 100644 --- a/Server/Program.cs +++ b/Server/Program.cs @@ -14,6 +14,7 @@ ILoggerFactory loggerFactory = LoggerFactory.Create(builder => { options.ColorBehavior = Microsoft.Extensions.Logging.Console.LoggerColorBehavior.Enabled; options.TimestampFormat = "[HH:mm:ss]"; + options.IncludeScopes = true; }); builder.AddFile("Logs/log-{0:yyyy}-{0:MM}-{0:dd}.txt", opts => opts.FormatLogFileName = fileName => String.Format(fileName, DateTime.UtcNow));