Skip to content

Commit ac6f2a4

Browse files
committed
added action for standard logger incorporation
1 parent caf5a29 commit ac6f2a4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Program.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ private static async Task Main(string[] args)
6060
_logger = serviceProvider.GetRequiredService<ILogger<Program>>();
6161
Log.LogInformation("Application Starting");
6262

63+
Log.WriteMessage += s => _logger.LogInformation(s);
64+
6365
//Start the host.. This runs background services.
6466
// We don't await host.RunAsync() because its a blocking call
6567
// and we need to run the Windforms message loop.

0 commit comments

Comments
 (0)