Fixed log to console issue.

This commit is contained in:
kay.one 2011-10-06 23:43:35 -07:00
parent 8bf4f81a04
commit 57c296c62f
9 changed files with 10 additions and 11 deletions

View File

@ -18,10 +18,9 @@
</targets> </targets>
<rules> <rules>
<logger name="IIS*" minlevel="Trace" writeTo="consoleTarget"/> <logger name="Host.*" minlevel="Trace" writeTo="consoleTarget"/>
<logger name="NzbDrone.Web.MvcApplication" minlevel="Trace" writeTo="consoleTarget"/> <logger name="NzbDrone.Web.MvcApplication" minlevel="Trace" writeTo="consoleTarget"/>
<logger name="NzbDrone.Core.CentralDispatch" minlevel="Trace" writeTo="consoleTarget"/> <logger name="NzbDrone.Core.CentralDispatch" minlevel="Trace" writeTo="consoleTarget"/>
<logger name="Application" minlevel="Trace" writeTo="consoleTarget"/>
<logger name="*" minlevel="Debug" writeTo="udpTarget"/> <logger name="*" minlevel="Debug" writeTo="udpTarget"/>
<logger name="*" minlevel="Off" writeTo="xmlFile"/> <logger name="*" minlevel="Off" writeTo="xmlFile"/>
<logger name="*" minlevel="Warn" writeTo="file"/> <logger name="*" minlevel="Warn" writeTo="file"/>

View File

@ -8,7 +8,7 @@ namespace NzbDrone
{ {
public class Application 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 ConfigProvider _configProvider;
private readonly WebClient _webClient; private readonly WebClient _webClient;

View File

@ -9,7 +9,7 @@ namespace NzbDrone
{ {
public static readonly StandardKernel Kernel = new StandardKernel(); 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() private static void Main()
{ {

View File

@ -11,7 +11,7 @@ namespace NzbDrone.Providers
{ {
public class ConfigProvider public class ConfigProvider
{ {
private static readonly Logger Logger = LogManager.GetLogger("ConfigProvider"); private static readonly Logger Logger = LogManager.GetLogger("Host.ConfigProvider");
public virtual string ApplicationRoot public virtual string ApplicationRoot
{ {

View File

@ -8,7 +8,7 @@ namespace NzbDrone.Providers
public class DebuggerProvider public class DebuggerProvider
{ {
private static readonly Logger Logger = LogManager.GetLogger("DebuggerProvider"); private static readonly Logger Logger = LogManager.GetLogger("Host.DebuggerProvider");
public virtual void Attach() public virtual void Attach()

View File

@ -10,8 +10,8 @@ namespace NzbDrone.Providers
{ {
private readonly ConfigProvider _configProvider; private readonly ConfigProvider _configProvider;
private readonly ProcessProvider _processProvider; private readonly ProcessProvider _processProvider;
private static readonly Logger IISLogger = LogManager.GetLogger("IISExpress"); private static readonly Logger IISLogger = LogManager.GetLogger("Host.IISExpress");
private static readonly Logger Logger = LogManager.GetLogger("IISProvider"); private static readonly Logger Logger = LogManager.GetLogger("Host.IISProvider");
[Inject] [Inject]

View File

@ -10,7 +10,7 @@ namespace NzbDrone.Providers
{ {
public class MonitoringProvider 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 IISProvider _iisProvider;
private readonly ProcessProvider _processProvider; private readonly ProcessProvider _processProvider;

View File

@ -7,7 +7,7 @@ namespace NzbDrone.Providers
{ {
public class ProcessProvider public class ProcessProvider
{ {
private static readonly Logger Logger = LogManager.GetLogger("ProcessProvider"); private static readonly Logger Logger = LogManager.GetLogger("Host.ProcessProvider");
public virtual ProcessInfo GetCurrentProcess() public virtual ProcessInfo GetCurrentProcess()

View File

@ -12,7 +12,7 @@ namespace NzbDrone.Providers
{ {
public const string NzbDroneServiceName = "NzbDrone"; 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) public bool ServiceExist(string name)