2010-10-17 17:22:48 +00:00
|
|
|
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" autoReload="true">
|
|
|
|
<targets>
|
2011-04-24 03:02:20 +00:00
|
|
|
<target name="consoleTarget" xsi:type="ColoredConsole" layout="${date} ${logger} - ${message} ${exception:ToString}" />
|
2011-03-29 00:12:48 +00:00
|
|
|
<target name="udpTarget" xsi:type="Chainsaw" address="udp://127.0.0.1:20480"
|
2010-10-17 17:22:48 +00:00
|
|
|
includeCallSite="true" includeSourceInfo="true" includeNLogData="true" includeNDC="true" includeMDC="true">
|
|
|
|
<parameter name="exception" layout="${exception:format=ToString}" xsi:type="NLogViewerParameterInfo" />
|
|
|
|
<parameter name="processname" layout="${processname}" xsi:type="NLogViewerParameterInfo" />
|
|
|
|
<parameter name="stacktrace" layout="${stacktrace:topFrames=99}" xsi:type="NLogViewerParameterInfo" />
|
|
|
|
<parameter name="ThreadName" layout="${threadname}" xsi:type="NLogViewerParameterInfo" />
|
|
|
|
</target>
|
2010-10-18 06:06:16 +00:00
|
|
|
|
2011-04-21 02:30:28 +00:00
|
|
|
<target name="file" xsi:type="File"
|
|
|
|
layout="${longdate} [${level}] ${logger}: ${message} ${exception:ToString}"
|
|
|
|
fileName="${basedir}/App_Data/logs/${shortdate}.txt" />
|
2011-04-25 18:41:20 +00:00
|
|
|
<target name ="xmlFile" xsi:type="File"
|
|
|
|
fileName="${basedir}/App_Data/logs/${shortdate}.xml"
|
|
|
|
layout="${log4jxmlevent:includeSourceInfo=true:includeCallSite=true:includeMDC=true:appInfo=true:includeNDC=true:includeNLogData=true}"/>
|
2011-04-21 02:30:28 +00:00
|
|
|
</targets>
|
2010-10-17 17:22:48 +00:00
|
|
|
|
|
|
|
<rules>
|
|
|
|
|
|
|
|
<logger name="IIS*" minlevel="Trace" writeTo="consoleTarget"/>
|
|
|
|
<logger name="Application" minlevel="Trace" writeTo="consoleTarget"/>
|
|
|
|
<logger name="*" minlevel="Trace" writeTo="udpTarget"/>
|
2011-04-25 18:41:20 +00:00
|
|
|
<logger name="*" minlevel="Off" writeTo="xmlFile">
|
|
|
|
<filters>
|
|
|
|
<when condition="logger == 'NzbDrone.SubSonic'" action="Ignore" />
|
|
|
|
</filters>
|
|
|
|
</logger>
|
2011-04-21 02:30:28 +00:00
|
|
|
<logger name="*" minlevel="Trace" writeTo="file">
|
|
|
|
<filters>
|
|
|
|
<when condition="logger == 'NzbDrone.SubSonic'" action="Ignore" />
|
|
|
|
</filters>
|
|
|
|
</logger>
|
2010-10-17 17:22:48 +00:00
|
|
|
</rules>
|
|
|
|
</nlog>
|