<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <targets>
      <target name="file" xsi:type="File" fileName="${basedir}/App_Data/logs/${shortdate}.txt"
            layout="[${date:format=yyyy-MM-dd HH\:mm\:ss}][${level}] ${aspnet-SessionId} ${aspnet-Request-Url} ${message} ${exception}" />
    </targets>
    <rules>
      <logger name="*" minlevel="Debug" writeTo="file" />
    </rules>
  </nlog>

 

相关文章:

  • 2022-01-16
  • 2021-09-26
  • 2021-10-04
  • 2021-12-15
  • 2022-01-08
  • 2021-05-16
  • 2021-10-28
  • 2022-12-23
猜你喜欢
  • 2022-03-02
  • 2022-12-23
  • 2021-09-10
相关资源
相似解决方案