Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8" ?>
- <configuration>
- <configSections>
- <section name="nlog" type="NLog.Config.ConfigSectionHandler, NLog"/>
- </configSections>
- <startup>
- <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
- </startup>
- <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <targets>
- <target xsi:type="Syslog" name="consoleTarget" layout="${longdate} | ${level} | ${threadname}(${threadid}) | ${message} ${exception:format=tostring} | ${logger}"/>
- <target xsi:type="AsyncWrapper" name="fileTarget" queueLimit="5000" overflowAction="Discard">
- <target xsi:type="File" fileName="${basedir}/logs/${shortdate}.log"
- layout="${longdate} | ${level} | ${threadname}(${threadid}) | ${message} ${exception:format=tostring} | ${logger}"
- archiveFileName="${basedir}/logs/log.{#}.txt"
- archiveEvery="Day"
- archiveNumbering="Rolling"
- maxArchiveFiles="7" />
- </target>
- </targets>
- <rules>
- <logger name="*" minlevel="Trace" writeTo="fileTarget"/>
- </rules>
- </nlog>
- </configuration>
Advertisement
Add Comment
Please, Sign In to add comment