From cf47fb99f28db096023a2b600300ef9f80635bc9 Mon Sep 17 00:00:00 2001 From: Warren Date: Fri, 27 Jul 2018 16:19:44 +0100 Subject: [PATCH] An initial test of seeing if Serilog is setup & can write out to a new file --- src/Umbraco.Core/Logging/Logger.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Umbraco.Core/Logging/Logger.cs b/src/Umbraco.Core/Logging/Logger.cs index 8fe6053a2c..ac0cd091da 100644 --- a/src/Umbraco.Core/Logging/Logger.cs +++ b/src/Umbraco.Core/Logging/Logger.cs @@ -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(); }