From 57c296c62ff9fbdab07d94218cb5aa5f22e11d6e Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Thu, 6 Oct 2011 23:43:35 -0700 Subject: [PATCH] Fixed log to console issue. --- NzbDrone.Web/log.config | 3 +-- NzbDrone/Application.cs | 2 +- NzbDrone/Program.cs | 2 +- NzbDrone/Providers/ConfigProvider.cs | 2 +- NzbDrone/Providers/DebuggerProvider.cs | 2 +- NzbDrone/Providers/IISProvider.cs | 4 ++-- NzbDrone/Providers/MonitoringProvider.cs | 2 +- NzbDrone/Providers/ProcessProvider.cs | 2 +- NzbDrone/Providers/ServiceProvider.cs | 2 +- 9 files changed, 10 insertions(+), 11 deletions(-) diff --git a/NzbDrone.Web/log.config b/NzbDrone.Web/log.config index 44488e67a..3e9e0b3a6 100644 --- a/NzbDrone.Web/log.config +++ b/NzbDrone.Web/log.config @@ -18,10 +18,9 @@ - + - diff --git a/NzbDrone/Application.cs b/NzbDrone/Application.cs index 0e820235b..0c5b7636a 100644 --- a/NzbDrone/Application.cs +++ b/NzbDrone/Application.cs @@ -8,7 +8,7 @@ namespace NzbDrone { public class Application { - private static readonly Logger Logger = LogManager.GetLogger("Application"); + private static readonly Logger Logger = LogManager.GetLogger("Host.App"); private readonly ConfigProvider _configProvider; private readonly WebClient _webClient; diff --git a/NzbDrone/Program.cs b/NzbDrone/Program.cs index 58a559e18..6dd899b29 100644 --- a/NzbDrone/Program.cs +++ b/NzbDrone/Program.cs @@ -9,7 +9,7 @@ namespace NzbDrone { public static readonly StandardKernel Kernel = new StandardKernel(); - private static readonly Logger Logger = LogManager.GetLogger("Main"); + private static readonly Logger Logger = LogManager.GetLogger("Host.Main"); private static void Main() { diff --git a/NzbDrone/Providers/ConfigProvider.cs b/NzbDrone/Providers/ConfigProvider.cs index 859b7a71e..4a4f3c5f9 100644 --- a/NzbDrone/Providers/ConfigProvider.cs +++ b/NzbDrone/Providers/ConfigProvider.cs @@ -11,7 +11,7 @@ namespace NzbDrone.Providers { public class ConfigProvider { - private static readonly Logger Logger = LogManager.GetLogger("ConfigProvider"); + private static readonly Logger Logger = LogManager.GetLogger("Host.ConfigProvider"); public virtual string ApplicationRoot { diff --git a/NzbDrone/Providers/DebuggerProvider.cs b/NzbDrone/Providers/DebuggerProvider.cs index 552fea34b..ce7d07ca4 100644 --- a/NzbDrone/Providers/DebuggerProvider.cs +++ b/NzbDrone/Providers/DebuggerProvider.cs @@ -8,7 +8,7 @@ namespace NzbDrone.Providers public class DebuggerProvider { - private static readonly Logger Logger = LogManager.GetLogger("DebuggerProvider"); + private static readonly Logger Logger = LogManager.GetLogger("Host.DebuggerProvider"); public virtual void Attach() diff --git a/NzbDrone/Providers/IISProvider.cs b/NzbDrone/Providers/IISProvider.cs index 99ea975dc..b5027e01d 100644 --- a/NzbDrone/Providers/IISProvider.cs +++ b/NzbDrone/Providers/IISProvider.cs @@ -10,8 +10,8 @@ namespace NzbDrone.Providers { private readonly ConfigProvider _configProvider; private readonly ProcessProvider _processProvider; - private static readonly Logger IISLogger = LogManager.GetLogger("IISExpress"); - private static readonly Logger Logger = LogManager.GetLogger("IISProvider"); + private static readonly Logger IISLogger = LogManager.GetLogger("Host.IISExpress"); + private static readonly Logger Logger = LogManager.GetLogger("Host.IISProvider"); [Inject] diff --git a/NzbDrone/Providers/MonitoringProvider.cs b/NzbDrone/Providers/MonitoringProvider.cs index 76dd24442..09a27fd41 100644 --- a/NzbDrone/Providers/MonitoringProvider.cs +++ b/NzbDrone/Providers/MonitoringProvider.cs @@ -10,7 +10,7 @@ namespace NzbDrone.Providers { public class MonitoringProvider { - private static readonly Logger Logger = LogManager.GetLogger("MonitoringProvider"); + private static readonly Logger Logger = LogManager.GetLogger("Host.MonitoringProvider"); private readonly IISProvider _iisProvider; private readonly ProcessProvider _processProvider; diff --git a/NzbDrone/Providers/ProcessProvider.cs b/NzbDrone/Providers/ProcessProvider.cs index 88afc9004..0c7ae7ec2 100644 --- a/NzbDrone/Providers/ProcessProvider.cs +++ b/NzbDrone/Providers/ProcessProvider.cs @@ -7,7 +7,7 @@ namespace NzbDrone.Providers { public class ProcessProvider { - private static readonly Logger Logger = LogManager.GetLogger("ProcessProvider"); + private static readonly Logger Logger = LogManager.GetLogger("Host.ProcessProvider"); public virtual ProcessInfo GetCurrentProcess() diff --git a/NzbDrone/Providers/ServiceProvider.cs b/NzbDrone/Providers/ServiceProvider.cs index 6bdd4dca8..e627e60e4 100644 --- a/NzbDrone/Providers/ServiceProvider.cs +++ b/NzbDrone/Providers/ServiceProvider.cs @@ -12,7 +12,7 @@ namespace NzbDrone.Providers { public const string NzbDroneServiceName = "NzbDrone"; - private static readonly Logger Logger = LogManager.GetLogger("ServiceManager"); + private static readonly Logger Logger = LogManager.GetLogger("Host.ServiceManager"); public bool ServiceExist(string name)