more logging.

This commit is contained in:
kay.one 2013-05-20 20:28:14 -07:00
parent af4063c3e2
commit 2573558321
3 changed files with 4 additions and 2 deletions

View File

@ -20,7 +20,7 @@ namespace NzbDrone.Core.Instrumentation
{ {
Layout = new SimpleLayout("${callsite:className=false:fileName=false:includeSourcePath=false:methodName=true}"); Layout = new SimpleLayout("${callsite:className=false:fileName=false:includeSourcePath=false:methodName=true}");
Rule = new LoggingRule("*", LogLevel.Debug, this); Rule = new LoggingRule("*", LogLevel.Trace, this);
LogManager.Configuration.AddTarget("DbLogger", this); LogManager.Configuration.AddTarget("DbLogger", this);
LogManager.Configuration.LoggingRules.Add(Rule); LogManager.Configuration.LoggingRules.Add(Rule);

View File

@ -26,6 +26,6 @@
<rules> <rules>
<logger name="*" minlevel="Trace" writeTo="consoleLogger"/> <logger name="*" minlevel="Trace" writeTo="consoleLogger"/>
<logger name="*" minlevel="Off" writeTo="udpTarget"/> <logger name="*" minlevel="Off" writeTo="udpTarget"/>
<logger name="*" minlevel="Debug" writeTo="rollingFileLogger"/> <logger name="*" minlevel="Trace" writeTo="rollingFileLogger"/>
</rules> </rules>
</nlog> </nlog>

View File

@ -31,6 +31,8 @@ namespace NzbDrone.Owin
App = GetType().AssemblyQualifiedName App = GetType().AssemblyQualifiedName
}; };
_logger.Info("starting server on {0}", options.Url);
_host = WebApplication.Start(options, BuildApp); _host = WebApplication.Start(options, BuildApp);
} }