mirror of
https://github.com/ncblakely/GiantsTools
synced 2024-12-24 08:17:23 +01:00
Add event source logging.
This commit is contained in:
parent
05490c58bc
commit
24e547fde2
@ -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) =>
|
||||
|
Loading…
Reference in New Issue
Block a user