feat: gracefully shutdown logmanager on exit

This commit is contained in:
Oliver Booth 2023-08-10 22:49:44 +01:00
parent dcbc402bfb
commit 8dd4468c1a
Signed by: oliverbooth
GPG Key ID: 725DB725A0D9EE61

View File

@ -1,4 +1,5 @@
using Markdig;
using NLog;
using NLog.Extensions.Logging;
using OliverBooth.Data;
using OliverBooth.Markdown;
@ -52,3 +53,5 @@ app.MapRazorPages();
app.MapRssFeed("/blog/feed");
app.Run();
LogManager.Shutdown();