backup-NLog
Posted shadow-abyss
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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 <rule name="*" minlevel="Debug" writeTo="fileLog"/> 23 </rules> 24 25 </nlog>
--------- THE END ---------
以上是关于backup-NLog的主要内容,如果未能解决你的问题,请参考以下文章