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

  • 相关阅读:
    第三次冲刺
    [操作系统]实验四
    第二个冲刺5.0
    第二个冲刺
    学术诚信与职业道德--个人感想
    软件工程——sprint 1回顾总结
    [读书笔记]
    sprint5.0
    [操作系统]3.0
    学习进度条
  • 原文地址:https://www.cnblogs.com/shadow-abyss/p/13197249.html
Copyright © 2011-2022 走看看