From 6b987b1caa571e7688b9ed043870c5c03c14fb25 Mon Sep 17 00:00:00 2001 From: Kevin Hahn Date: Fri, 20 Dec 2024 17:09:44 +0700 Subject: [PATCH] enable file logging again --- backend/FwLite/FwLiteDesktop/FwLiteDesktopKernel.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/FwLite/FwLiteDesktop/FwLiteDesktopKernel.cs b/backend/FwLite/FwLiteDesktop/FwLiteDesktopKernel.cs index 447df394a..8d02776bd 100644 --- a/backend/FwLite/FwLiteDesktop/FwLiteDesktopKernel.cs +++ b/backend/FwLite/FwLiteDesktop/FwLiteDesktopKernel.cs @@ -5,6 +5,7 @@ using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Hosting.Internal; using Microsoft.Extensions.Logging; +using NReco.Logging.File; namespace FwLiteDesktop; @@ -67,7 +68,7 @@ public static void AddFwLiteDesktopServices(this IServiceCollection services, config.SystemWebViewLogin = true; }); - // logging.AddFile(Path.Combine(baseDataPath, "app.log")); + logging.AddFile(Path.Combine(baseDataPath, "app.log")); services.AddSingleton(Preferences.Default); services.AddSingleton(VersionTracking.Default); services.AddSingleton(Connectivity.Current);