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

nlog配置文件

时间:2017-09-29 09:59:08      阅读:155      评论:0      收藏:0      [点我收藏+]

标签:pdo   format   targe   cep   .config   get   version   文件名   archive   

文件名 nlog.config

内容如下:

<?xml version="1.0" encoding="utf-8" ?>
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
  <targets async="true" maxarchivefiles="2">
    <target  name="log_file" xsi:type="File"  fileName="${basedir}/logs/${date:format=yyyyMMdd}.log"
            layout="[============================${newline}${date} ${appdomain}  ${logger} ${level}${newline}${message}${newline}${exception}]"/>
  </targets>
  <rules>
    <logger name="*" minlevel="trace"  writeTo="log_file"></logger>
  </rules>
</nlog>

nlog配置文件

标签:pdo   format   targe   cep   .config   get   version   文件名   archive   

原文地址:http://www.cnblogs.com/iframe/p/7609380.html

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