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:
parent
05490c58bc
commit
24e547fde2
@ -1,13 +1,17 @@
|
|||||||
namespace Giants.Web
|
namespace Giants.Web
|
||||||
{
|
{
|
||||||
|
using Microsoft.AspNetCore.Builder;
|
||||||
using Microsoft.AspNetCore.Hosting;
|
using Microsoft.AspNetCore.Hosting;
|
||||||
using Microsoft.Extensions.Hosting;
|
using Microsoft.Extensions.Hosting;
|
||||||
|
using Microsoft.Extensions.Logging;
|
||||||
|
|
||||||
public class Program
|
public class Program
|
||||||
{
|
{
|
||||||
public static void Main(string[] args)
|
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) =>
|
public static IHostBuilder CreateHostBuilder(string[] args) =>
|
||||||
|
Loading…
Reference in New Issue
Block a user