NLog.config 833 B

123456789101112131415161718192021222324
  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. <targets>
  5. <target name="file" xsi:type="File" fileName="${basedir}/logs/${shortdate}-Rocky.log"
  6. layout="${longdate} ${uppercase:${level}} ${message}" />
  7. <target name="debugger" xsi:type="Debugger" layout="${longdate} ${uppercase:${level}} ${message}" />
  8. <!--
  9. <target xsi:type="File" name="f" fileName="${basedir}/logs/${shortdate}.log"
  10. layout="${longdate} ${uppercase:${level}} ${message}" />
  11. -->
  12. </targets>
  13. <rules>
  14. <logger name="*" minlevel="Trace" writeTo="file" />
  15. <logger name="*" minlevel="Trace" writeTo="debugger" />
  16. <!--
  17. <logger name="*" minlevel="Trace" writeTo="f" />
  18. -->
  19. </rules>
  20. </nlog>