mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-19 21:44:30 -04:00
Update updates ;)
This commit is contained in:
@@ -50,12 +50,18 @@ namespace NzbDrone.Common
|
||||
{
|
||||
try
|
||||
{
|
||||
var udpTarget = new ChainsawTarget();
|
||||
var udpTarget = new NLogViewerTarget();
|
||||
udpTarget.Address = "udp://127.0.0.1:20480";
|
||||
udpTarget.IncludeCallSite = true;
|
||||
udpTarget.IncludeSourceInfo = true;
|
||||
udpTarget.IncludeNLogData = true;
|
||||
udpTarget.IncludeNdc = true;
|
||||
udpTarget.Parameters.Add(new NLogViewerParameterInfo
|
||||
{
|
||||
Name = "Exception",
|
||||
Layout = "${exception:format=ToString}"
|
||||
});
|
||||
|
||||
LogManager.Configuration.AddTarget(udpTarget.GetType().Name, udpTarget);
|
||||
LogManager.Configuration.LoggingRules.Add(new LoggingRule("*", LogLevel.Trace, udpTarget));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user