mirror of
https://github.com/ncblakely/GiantsTools
synced 2025-01-30 05:27:26 +01:00
Add event source logging.
This commit is contained in:
parent
05490c58bc
commit
24e547fde2
1 changed files with 5 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue