Skip to content

Commit

Permalink
BlazorServer: HeadlessServer: based on env use more verbose input log…
Browse files Browse the repository at this point in the history
…ging.

HeadlessServer: During startup show the env.
  • Loading branch information
Xian55 committed Mar 26, 2024
1 parent 1fe5ba2 commit 452da19
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
4 changes: 3 additions & 1 deletion BlazorServer/appsettings.Development.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"Default": "Debug",
"Override": {
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
"Microsoft.Hosting.Lifetime": "Information",
"Game.WowProcessInput": "Verbose",
"Core.ConfigurableInput": "Verbose"
}
}
}
Expand Down
4 changes: 3 additions & 1 deletion BlazorServer/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"Default": "Debug",
"Override": {
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
"Microsoft.Hosting.Lifetime": "Information",
"Game.WowProcessInput": "Warning",
"Core.ConfigurableInput": "Warning"
}
}
},
Expand Down
2 changes: 2 additions & 0 deletions HeadlessServer/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ private static void Main(string[] args)

ILogger<Program> log = logFactory.CreateLogger<Program>();

log.LogInformation($"Hosting environment: {environmentName ?? "Production"}");

log.LogInformation(
$"{Thread.CurrentThread.CurrentCulture.TwoLetterISOLanguageName} " +
$"{DateTimeOffset.Now}");
Expand Down
5 changes: 4 additions & 1 deletion HeadlessServer/headless_appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
"Default": "Debug",
"Override": {
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
"Microsoft.Hosting.Lifetime": "Information",

"Game.WowProcessInput": "Warning",
"Core.ConfigurableInput": "Warning"
}
}
}
Expand Down

0 comments on commit 452da19

Please sign in to comment.