Guest User

Untitled

a guest
Feb 8th, 2016
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.20 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <configuration>
  3.   <configSections>
  4.     <section name="nlog" type="NLog.Config.ConfigSectionHandler, NLog"/>
  5.   </configSections>
  6.     <startup>
  7.         <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
  8.     </startup>
  9.   <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  10.     <targets>
  11.         <target xsi:type="Syslog" name="consoleTarget" layout="${longdate} | ${level} | ${threadname}(${threadid}) | ${message} ${exception:format=tostring} | ${logger}"/>
  12.         <target xsi:type="AsyncWrapper" name="fileTarget" queueLimit="5000" overflowAction="Discard">
  13.         <target xsi:type="File" fileName="${basedir}/logs/${shortdate}.log"
  14.                layout="${longdate} | ${level} | ${threadname}(${threadid}) | ${message} ${exception:format=tostring} | ${logger}"
  15.                archiveFileName="${basedir}/logs/log.{#}.txt"
  16.                archiveEvery="Day"
  17.                       archiveNumbering="Rolling"
  18.                       maxArchiveFiles="7" />
  19.         </target>
  20.     </targets>
  21.     <rules>
  22.       <logger name="*" minlevel="Trace" writeTo="fileTarget"/>
  23.     </rules>
  24.   </nlog>
  25. </configuration>
Advertisement
Add Comment
Please, Sign In to add comment