Show logging and update packages

This commit is contained in:
2021-06-24 14:58:17 +02:00
parent 8c14e25305
commit 776221b4fb
8 changed files with 47 additions and 15 deletions

View File

@@ -1,3 +1,4 @@
using GerstITS.Logging.Serilog;
using GerstITS.Web.Api.Hosting;
namespace GerstITS.Examples.Api
@@ -8,12 +9,13 @@ namespace GerstITS.Examples.Api
public static void Main(string[] args)
{
Run(args);
BootstrapLogContext.Execute<Program>(_ => Run(args));
}
protected override void ConfigureWebHost(IWebHostBuilder webHostBuilder)
{
webHostBuilder.UseStartup<Startup>();
webHostBuilder.UseLogging()
.UseStartup<Startup>();
}
#endregion