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
+8 -2
View File
@@ -2,6 +2,7 @@
using System.Windows.Forms;
using NLog;
using NzbDrone.Common.EnvironmentInfo;
using NzbDrone.Common.Instrumentation;
using NzbDrone.Host;
using NzbDrone.SysTray;
@@ -9,12 +10,17 @@ namespace NzbDrone
{
public static class WindowsApp
{
private static readonly Logger Logger = NzbDroneLogger.GetLogger();
public static void Main(string[] args)
{
try
{
var container = Bootstrap.Start(new StartupArguments(args), new MessageBoxUserAlert());
var startupArgs = new StartupArguments(args);
LogTargets.Register(startupArgs, false, true);
var container = Bootstrap.Start(startupArgs, new MessageBoxUserAlert());
container.Register<ISystemTrayApp, SystemTrayApp>();
container.Resolve<ISystemTrayApp>().Start();
}
@@ -28,4 +34,4 @@ namespace NzbDrone
}
}
}
}
}