Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
38 lines (36 sloc) 1.28 KB
<?xml version="1.0"?>
<configuration>
<configSections>
<section name="nlog" type="NLog.Config.ConfigSectionHandler, NLog"/>
</configSections>
<nlog>
<targets>
<target name="console" type="Console"
layout="${message}"
/>
<target name="file" type="AsyncWrapper"
queueLimit="5000"
overflowAction="Discard">
<target type="File"
fileName="${basedir}/logs/this.Log-NLog.Sample.log"
layout="${longdate} ${threadid} [${level:uppercase=true}] ${message}"
/>
</target>
<target name="errorSmtp" type="Mail"
layout="${longdate} ${threadid} [${level:uppercase=true}] ${logger} - ${message}"
subject="this.Log Sample Console Errors - LOCAL DEBUG"
to="noone@noreply.org"
from="this.Log.sample@noreply.org"
smtpServer="localhost"
/>
</targets>
<rules>
<logger name="*" minlevel="Debug" writeTo="file" />
<logger name="*" minlevel="Debug" writeTo="console" />
<logger name="*" minlevel="Error" writeTo="errorSmtp" />
</rules>
</nlog>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
</configuration>
Jump to Line
Something went wrong with that request. Please try again.