mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-25 17:17:02 +00:00
more logging.
This commit is contained in:
parent
af4063c3e2
commit
2573558321
3 changed files with 4 additions and 2 deletions
|
@ -20,7 +20,7 @@ public void Register()
|
|||
{
|
||||
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.LoggingRules.Add(Rule);
|
||||
|
|
|
@ -26,6 +26,6 @@
|
|||
<rules>
|
||||
<logger name="*" minlevel="Trace" writeTo="consoleLogger"/>
|
||||
<logger name="*" minlevel="Off" writeTo="udpTarget"/>
|
||||
<logger name="*" minlevel="Debug" writeTo="rollingFileLogger"/>
|
||||
<logger name="*" minlevel="Trace" writeTo="rollingFileLogger"/>
|
||||
</rules>
|
||||
</nlog>
|
|
@ -31,6 +31,8 @@ public void StartServer()
|
|||
App = GetType().AssemblyQualifiedName
|
||||
};
|
||||
|
||||
_logger.Info("starting server on {0}", options.Url);
|
||||
|
||||
_host = WebApplication.Start(options, BuildApp);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue