mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
Update updates ;)
This commit is contained in:
parent
88f4d15fa9
commit
6369d4f817
13 changed files with 87 additions and 15 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue