mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 05:53:33 -07:00
New: NzbDrone service to automatically report errors and episode parse issues.
This commit is contained in:
parent
ea86ce2fcb
commit
174f765ec9
140 changed files with 10774 additions and 1694 deletions
21
NzbDrone.Common/NlogTargets/RemoteTarget.cs
Normal file
21
NzbDrone.Common/NlogTargets/RemoteTarget.cs
Normal file
|
@ -0,0 +1,21 @@
|
|||
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);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue