nlog

  <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>

 

posted @ 2017-10-02 15:01  shiningrise  阅读(267)  评论(0编辑  收藏  举报
// 侧边栏目录 // https://blog-static.cnblogs.com/files/douzujun/marvin.nav.my1502.css