An initial test of seeing if Serilog is setup & can write out to a new file

This commit is contained in:
Warren
2018-07-27 16:19:44 +01:00
parent 5659624879
commit cf47fb99f2

View File

@@ -37,6 +37,7 @@ namespace Umbraco.Core.Logging
.Enrich.WithThreadId()
.Enrich.WithProperty("AppDomainId", AppDomain.CurrentDomain.Id)
.Enrich.WithProperty("AppDomainAppId", HttpRuntime.AppDomainAppId.ReplaceNonAlphanumericChars(string.Empty))
.WriteTo.File(AppDomain.CurrentDomain.BaseDirectory + "\\logs\\warren.txt", rollingInterval: RollingInterval.Day)
.CreateLogger();
}