From 452da19f0450d59fa7b3fd7583fc0b0074d9e062 Mon Sep 17 00:00:00 2001 From: Xian55 <367101+Xian55@users.noreply.github.com> Date: Tue, 26 Mar 2024 22:03:27 +0100 Subject: [PATCH] BlazorServer: HeadlessServer: based on env use more verbose input logging. HeadlessServer: During startup show the env. --- BlazorServer/appsettings.Development.json | 4 +++- BlazorServer/appsettings.json | 4 +++- HeadlessServer/Program.cs | 2 ++ HeadlessServer/headless_appsettings.json | 5 ++++- 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/BlazorServer/appsettings.Development.json b/BlazorServer/appsettings.Development.json index 5dbf2da5..c6d0ccd0 100644 --- a/BlazorServer/appsettings.Development.json +++ b/BlazorServer/appsettings.Development.json @@ -5,7 +5,9 @@ "Default": "Debug", "Override": { "Microsoft": "Warning", - "Microsoft.Hosting.Lifetime": "Information" + "Microsoft.Hosting.Lifetime": "Information", + "Game.WowProcessInput": "Verbose", + "Core.ConfigurableInput": "Verbose" } } } diff --git a/BlazorServer/appsettings.json b/BlazorServer/appsettings.json index eb2ed03b..22f422bc 100644 --- a/BlazorServer/appsettings.json +++ b/BlazorServer/appsettings.json @@ -4,7 +4,9 @@ "Default": "Debug", "Override": { "Microsoft": "Warning", - "Microsoft.Hosting.Lifetime": "Information" + "Microsoft.Hosting.Lifetime": "Information", + "Game.WowProcessInput": "Warning", + "Core.ConfigurableInput": "Warning" } } }, diff --git a/HeadlessServer/Program.cs b/HeadlessServer/Program.cs index 0357d9a3..13a80f36 100644 --- a/HeadlessServer/Program.cs +++ b/HeadlessServer/Program.cs @@ -55,6 +55,8 @@ private static void Main(string[] args) ILogger log = logFactory.CreateLogger(); + log.LogInformation($"Hosting environment: {environmentName ?? "Production"}"); + log.LogInformation( $"{Thread.CurrentThread.CurrentCulture.TwoLetterISOLanguageName} " + $"{DateTimeOffset.Now}"); diff --git a/HeadlessServer/headless_appsettings.json b/HeadlessServer/headless_appsettings.json index 07b73aaa..27216a04 100644 --- a/HeadlessServer/headless_appsettings.json +++ b/HeadlessServer/headless_appsettings.json @@ -4,7 +4,10 @@ "Default": "Debug", "Override": { "Microsoft": "Warning", - "Microsoft.Hosting.Lifetime": "Information" + "Microsoft.Hosting.Lifetime": "Information", + + "Game.WowProcessInput": "Warning", + "Core.ConfigurableInput": "Warning" } } }