NLog.config 730 B

12345678910111213
  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="log_file" xsi:type="File" fileName="${specialfolder:file=ISBC/ESMART_PKI_Client.log:folder=LocalApplicationData}" archiveAboveSize="1024000"
  6. layout="${date:format=yyyy-MM-dd HH\:mm\:ss\.fff} [${level}] [Thread ${threadid}] ${callsite} - ${message}; ${exception:format=type,message,stacktrace:maxInnerExceptionLevel=5:innerFormat=shortType,message,stacktrace}" />
  7. </targets>
  8. <rules>
  9. <logger name="*" levels="Trace,Debug,Info,Warn,Error,Fatal" writeTo="log_file" />
  10. </rules>
  11. </nlog>