mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-25 17:27:18 +00:00
Toned down logging
This commit is contained in:
parent
54e81035fc
commit
bc0b1e8ae4
1 changed files with 4 additions and 14 deletions
|
@ -1,6 +1,6 @@
|
||||||
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" autoReload="true">
|
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" autoReload="true">
|
||||||
<targets>
|
<targets>
|
||||||
<target name="consoleTarget" xsi:type="ColoredConsole" layout="${date} ${logger} - ${message} ${exception:ToString}" />
|
<target name="consoleTarget" xsi:type="Console" layout="${date} ${logger} - ${message} ${exception}" />
|
||||||
<target name="udpTarget" xsi:type="Chainsaw" address="udp://127.0.0.1:20480"
|
<target name="udpTarget" xsi:type="Chainsaw" address="udp://127.0.0.1:20480"
|
||||||
includeCallSite="true" includeSourceInfo="true" includeNLogData="true" includeNDC="true" includeMDC="true">
|
includeCallSite="true" includeSourceInfo="true" includeNLogData="true" includeNDC="true" includeMDC="true">
|
||||||
<parameter name="exception" layout="${exception:format=ToString}" xsi:type="NLogViewerParameterInfo" />
|
<parameter name="exception" layout="${exception:format=ToString}" xsi:type="NLogViewerParameterInfo" />
|
||||||
|
@ -8,7 +8,6 @@
|
||||||
<parameter name="stacktrace" layout="${stacktrace:topFrames=99}" xsi:type="NLogViewerParameterInfo" />
|
<parameter name="stacktrace" layout="${stacktrace:topFrames=99}" xsi:type="NLogViewerParameterInfo" />
|
||||||
<parameter name="ThreadName" layout="${threadname}" xsi:type="NLogViewerParameterInfo" />
|
<parameter name="ThreadName" layout="${threadname}" xsi:type="NLogViewerParameterInfo" />
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="file" xsi:type="File" keepFileOpen="true" openFileCacheTimeout="1"
|
<target name="file" xsi:type="File" keepFileOpen="true" openFileCacheTimeout="1"
|
||||||
layout="${longdate} [${level}] ${logger}: ${message} ${exception:ToString}"
|
layout="${longdate} [${level}] ${logger}: ${message} ${exception:ToString}"
|
||||||
fileName="${basedir}/App_Data/logs/${shortdate}.txt" />
|
fileName="${basedir}/App_Data/logs/${shortdate}.txt" />
|
||||||
|
@ -18,21 +17,12 @@
|
||||||
</targets>
|
</targets>
|
||||||
|
|
||||||
<rules>
|
<rules>
|
||||||
|
|
||||||
<logger name="IIS*" minlevel="Trace" writeTo="consoleTarget"/>
|
<logger name="IIS*" 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="Application" minlevel="Trace" writeTo="consoleTarget"/>
|
||||||
<logger name="*" minlevel="Trace" writeTo="udpTarget"/>
|
<logger name="*" minlevel="Off" writeTo="udpTarget"/>
|
||||||
<logger name="*" minlevel="Off" writeTo="xmlFile">
|
<logger name="*" minlevel="Off" writeTo="xmlFile"/>
|
||||||
<filters>
|
<logger name="*" minlevel="Warn" writeTo="file"/>
|
||||||
<when condition="logger == 'NzbDrone.SubSonic'" action="Ignore" />
|
|
||||||
</filters>
|
|
||||||
</logger>
|
|
||||||
<logger name="*" minlevel="Trace" writeTo="file">
|
|
||||||
<filters>
|
|
||||||
<when condition="logger == 'NzbDrone.SubSonic'" action="Ignore" />
|
|
||||||
</filters>
|
|
||||||
</logger>
|
|
||||||
</rules>
|
</rules>
|
||||||
</nlog>
|
</nlog>
|
Loading…
Reference in a new issue