1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-18 21:35:51 -04:00

moved logging config to in-process

This commit is contained in:
Keivan Beigi
2013-08-30 18:42:30 -07:00
committed by kay.one
parent 95b21358c4
commit bceaee27a3
44 changed files with 257 additions and 203 deletions
+7 -2
View File
@@ -2,17 +2,22 @@
using System.Threading;
using NLog;
using NzbDrone.Common.EnvironmentInfo;
using NzbDrone.Common.Instrumentation;
using NzbDrone.Host;
namespace NzbDrone.Console
{
public static class ConsoleApp
{
private static readonly Logger Logger = NzbDroneLogger.GetLogger();
public static void Main(string[] args)
{
try
{
Bootstrap.Start(new StartupArguments(args), new ConsoleAlerts());
var startupArgs = new StartupArguments(args);
LogTargets.Register(startupArgs, false, true);
Bootstrap.Start(startupArgs, new ConsoleAlerts());
}
catch (TerminateApplicationException)
{
@@ -28,4 +33,4 @@ namespace NzbDrone.Console
}
}
}
}
}