|
|
@ -1,7 +1,5 @@
|
|
|
|
using System.IO;
|
|
|
|
|
|
|
|
using System.Linq;
|
|
|
|
using System.Linq;
|
|
|
|
using NLog;
|
|
|
|
using NLog;
|
|
|
|
using NLog.Config;
|
|
|
|
|
|
|
|
using NzbDrone.Common;
|
|
|
|
using NzbDrone.Common;
|
|
|
|
|
|
|
|
|
|
|
|
[assembly: WebActivator.PreApplicationStartMethod(typeof(NzbDrone.Web.App_Start.Logging), "PreStart")]
|
|
|
|
[assembly: WebActivator.PreApplicationStartMethod(typeof(NzbDrone.Web.App_Start.Logging), "PreStart")]
|
|
|
@ -15,7 +13,7 @@ namespace NzbDrone.Web.App_Start
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var environmentProvider = new EnvironmentProvider();
|
|
|
|
var environmentProvider = new EnvironmentProvider();
|
|
|
|
|
|
|
|
|
|
|
|
LogManager.Configuration = new XmlLoggingConfiguration(environmentProvider.GetNlogConfigPath(), false);
|
|
|
|
//LogManager.Configuration = new XmlLoggingConfiguration(environmentProvider.GetNlogConfigPath(), false);
|
|
|
|
|
|
|
|
|
|
|
|
LogConfiguration.RegisterUdpLogger();
|
|
|
|
LogConfiguration.RegisterUdpLogger();
|
|
|
|
LogConfiguration.RegisterRemote();
|
|
|
|
LogConfiguration.RegisterRemote();
|
|
|
|