-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathapp.config
More file actions
32 lines (31 loc) · 1.47 KB
/
app.config
File metadata and controls
32 lines (31 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?xml version="1.0" encoding="utf-8"?>
<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>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="NLog" publicKeyToken="5120e14c03d0593c" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2.1.0.0" newVersion="2.1.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>