diff --git a/NzbDrone.Common/LogConfiguration.cs b/NzbDrone.Common/LogConfiguration.cs index d7c16699a..566f4ee7e 100644 --- a/NzbDrone.Common/LogConfiguration.cs +++ b/NzbDrone.Common/LogConfiguration.cs @@ -2,7 +2,6 @@ using NLog; using NLog.Config; using NLog.Targets; -using NzbDrone.Common.NlogTargets; namespace NzbDrone.Common { @@ -112,36 +111,6 @@ namespace NzbDrone.Common LogManager.Configuration.LoggingRules.Add(new LoggingRule("*", level, fileTarget)); } - public static void RegisterRemote() - { - //if (EnviromentProvider.IsProduction) - //{ - // try - // { - // var exceptioneerTarget = new ExceptioneerTarget(); - // LogManager.Configuration.AddTarget("Exceptioneer", exceptioneerTarget); - // LogManager.Configuration.LoggingRules.Add(new LoggingRule("*", LogLevel.Trace, exceptioneerTarget)); - // } - // catch (Exception e) - // { - // Console.WriteLine(e); - // } - //} - - try - { - var remoteTarget = new RemoteTarget(); - LogManager.Configuration.AddTarget("RemoteTarget", remoteTarget); - LogManager.Configuration.LoggingRules.Add(new LoggingRule("*", LogLevel.Trace, remoteTarget)); - } - catch (Exception e) - { - Console.WriteLine(e); - } - - LogManager.ConfigurationReloaded += (sender, args) => RegisterRemote(); - } - public static void Reload() { LogManager.Configuration.Reload(); diff --git a/NzbDrone.Common/NlogTargets/RemoteTarget.cs b/NzbDrone.Common/NlogTargets/RemoteTarget.cs deleted file mode 100644 index 30c219bf7..000000000 --- a/NzbDrone.Common/NlogTargets/RemoteTarget.cs +++ /dev/null @@ -1,21 +0,0 @@ -using System.Linq; -using System.Diagnostics; -using NLog; -using NLog.Targets; - -namespace NzbDrone.Common.NlogTargets -{ - public class RemoteTarget : Target - { - private static readonly Logger logger = LogManager.GetCurrentClassLogger(); - - protected override void Write(LogEventInfo logEvent) - { - if (logEvent == null || logEvent.Exception == null) return; - - logger.Trace("Sending Exception to Service.NzbDrone.com . Process Name: {0}", Process.GetCurrentProcess().ProcessName); - - ReportingService.ReportException(logEvent); - } - } -} \ No newline at end of file diff --git a/NzbDrone.Common/NzbDrone.Common.csproj b/NzbDrone.Common/NzbDrone.Common.csproj index 69c667320..f8d155d55 100644 --- a/NzbDrone.Common/NzbDrone.Common.csproj +++ b/NzbDrone.Common/NzbDrone.Common.csproj @@ -59,10 +59,6 @@ ..\packages\Autofac.2.6.3.862\lib\NET40\Autofac.Configuration.dll - - False - ..\packages\Exceptron.Client.1.0.7\lib\net20\Exceptron.Client.dll - False ..\packages\Newtonsoft.Json.4.5.11\lib\net40\Newtonsoft.Json.dll @@ -87,7 +83,6 @@ - @@ -121,6 +116,7 @@ True +