From cf5a6f00188b0a99951951cb34eeb63432d9809b Mon Sep 17 00:00:00 2001 From: Mark Date: Wed, 28 Jun 2023 07:45:25 +0800 Subject: [PATCH] Fix logging --- TVRename/App/ApplicationBase.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/TVRename/App/ApplicationBase.cs b/TVRename/App/ApplicationBase.cs index 74cea139..6945003d 100644 --- a/TVRename/App/ApplicationBase.cs +++ b/TVRename/App/ApplicationBase.cs @@ -10,8 +10,6 @@ using System.Windows.Forms; using TVRename.Forms; -//using TVRename.Ipc; - namespace TVRename.App; /// @@ -227,8 +225,7 @@ private static void SetupCustomSettings(CommandLineArgs commandLineArgs) private void SetupLogging() { - LogManager.Setup() - .SetupExtensions(e => e.RegisterAssembly("NLog.Targets.Syslog")); + LogManager.Setup().SetupExtensions(e => e.RegisterAssembly("NLog.Targets.Syslog")); //ConfigurationItemFactory.Default.RegisterItemsFromAssembly(Assembly.Load("Timber.io.NLog")); SetupPapertrailLogging(); @@ -302,7 +299,7 @@ private static void SetupPapertrailLogging() try { LoggingConfiguration config = LogManager.Configuration; - using SyslogTarget papertrail = new() + SyslogTarget papertrail = new() { MessageCreation = { Facility = Facility.Local7 }, MessageSend =