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-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>
|
2011-06-24 04:03:11 +00:00
|
|
|
|
2011-05-20 02:13:21 +00:00
|
|
|
<target name="file" xsi:type="File" keepFileOpen="true" openFileCacheTimeout="1"
|
2011-04-21 02:30:28 +00:00
|
|
|
layout="${longdate} [${level}] ${logger}: ${message} ${exception:ToString}"
|
|
|
|
fileName="${basedir}/App_Data/logs/${shortdate}.txt" />
|
2011-05-20 02:13:21 +00:00
|
|
|
<target name ="xmlFile" xsi:type="File" keepFileOpen="true" openFileCacheTimeout="1"
|
2011-04-25 18:41:20 +00:00
|
|
|
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>
|
2011-06-24 04:03:11 +00:00
|
|
|
<logger name="*" minlevel="Debug" writeTo="udpTarget"/>
|
2011-06-24 01:35:32 +00:00
|
|
|
<logger name="*" minlevel="Off" writeTo="xmlFile"/>
|
2011-06-24 04:05:31 +00:00
|
|
|
<logger name="*" minlevel="Warn" writeTo="file"/>
|
2010-10-17 17:22:48 +00:00
|
|
|
</rules>
|
|
|
|
</nlog>
|