码迷,mamicode.com
首页 > 其他好文 > 详细

nlog

时间:2017-10-02 15:21:46      阅读:170      评论:0      收藏:0      [点我收藏+]

标签:level   net   org   xmlns   blog   code   min   logger   write   

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

 

nlog

标签:level   net   org   xmlns   blog   code   min   logger   write   

原文地址:http://www.cnblogs.com/shiningrise/p/7620149.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!