1
0
mirror of https://github.com/ncblakely/GiantsTools synced 2024-11-23 06:35:37 +01:00

Add event source logging.

This commit is contained in:
Nick Blakely 2022-09-05 13:04:34 -07:00
parent 05490c58bc
commit 24e547fde2

View File

@ -1,13 +1,17 @@
namespace Giants.Web
{
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
public class Program
{
public static void Main(string[] args)
{
CreateHostBuilder(args).Build().Run();
var builder = CreateHostBuilder(args);
builder.ConfigureLogging(x => x.AddEventSourceLogger());
builder.Build().Run();
}
public static IHostBuilder CreateHostBuilder(string[] args) =>