zoukankan      html  css  js  c++  java
  • backup-NLog

     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 
     5   <targets>
     6     <!-- ${basedir} ${appdomain} ${shortdate} -->
     7     <target name="fileLog" xsi:type="File"
     8             fileName="${basedir}/log/${appdomain}.log"
     9             archiveFileName="${basedir}/log/${appdomain}.{###}.log"
    10             archiveEvery="Day"
    11             archiveNumbering="Rolling"
    12             concurrentWrites="false"
    13             keepFileOpen="false"
    14             maxArchiveFiles="32"
    15             layout="${longdate} - ${logger} [${level}] - ${message} ${onexception:Exception Occurred: ${exception:format=type,message,method
    16                 :maxInnerExceptionLevel=5
    17                 :innerFormat=shortType,message,method}}"/>
    18   </targets>
    19 
    20   <rules>
    21     <!-- <rule name="*" minlevel="Debug" writeTo="fileLog"/> -->
    22     <logger name="*" minlevel="Debug" writeTo="fileLog"/>
    23   </rules>
    24 
    25 </nlog>

    --------- THE END ---------

  • 相关阅读:
    正则表达式
    js trim函数 去空格函数与正则集锦
    变量的作用域问题
    for...in 语句
    JS小案例分析
    JS动态创建元素的方式
    JS类的封装
    js操作节点小结
    节点兼容
    节点小结
  • 原文地址:https://www.cnblogs.com/shadow-abyss/p/13197249.html
Copyright © 2011-2022 走看看