Skip to content

Commit

Permalink
Fix logging
Browse files Browse the repository at this point in the history
  • Loading branch information
SirSparkles committed Jun 27, 2023
1 parent 4b5c37b commit cf5a6f0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions TVRename/App/ApplicationBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
using System.Windows.Forms;
using TVRename.Forms;

//using TVRename.Ipc;

namespace TVRename.App;

/// <summary>
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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 =
Expand Down

0 comments on commit cf5a6f0

Please sign in to comment.