Advertisement
Guest User

bk

a guest
Dec 5th, 2019
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.64 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://www.nlog-project.org/schemas/NLog.xsd NLog.xsd"
  5. autoReload="true"
  6. throwExceptions="false"
  7. internalLogLevel="Off" internalLogFile="c:\temp\nlog-internal.log">
  8.  
  9. <!-- optional, add some variables
  10. https://github.com/nlog/NLog/wiki/Configuration-file#variables
  11. -->
  12. <variable name="myvar" value="myvalue"/>
  13.  
  14. <!--
  15. See https://github.com/nlog/nlog/wiki/Configuration-file
  16. for information on customizing logging rules and outputs.
  17. -->
  18. <targets>
  19.  
  20. <!--
  21. add your targets here
  22. See https://github.com/nlog/NLog/wiki/Targets for possible targets.
  23. See https://github.com/nlog/NLog/wiki/Layout-Renderers for the possible layout renderers.
  24. -->
  25. <target name="logfile"
  26. xsi:type="File"
  27. archiveAboveSize="10000000"
  28. maxArchiveFiles="3"
  29. archiveFileName="LogArchive"
  30. fileName="log.txt"
  31. />
  32. <!--
  33. Write events to a file with the date in the filename.
  34. <target xsi:type="File" name="f" fileName="${basedir}/logs/${shortdate}.log"
  35. layout="${longdate} ${uppercase:${level}} ${message}" />
  36. -->
  37. </targets>
  38.  
  39. <rules>
  40. <!-- add your logging rules here -->
  41. <logger name="*" minlevel="Debug" writeTo="logfile" />
  42. <!--
  43. Write all events with minimal level of Debug (So Debug, Info, Warn, Error and Fatal, but not Trace) to "f"
  44. <logger name="*" minlevel="Debug" writeTo="f" />
  45. -->
  46. </rules>
  47. </nlog>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement