123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- <?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">
- <target name="ClientDebug" xsi:type="File"
- openFileCacheTimeout="10"
- keepFileOpen="true"
- archiveNumbering="Date"
- archiveEvery="Hour"
- archiveDateFormat="yyyyMMddHH"
- archiveFileName="${basedir}/Logs/${logger}.{#}.Debug.log"
- fileName="${basedir}/Logs/${logger}.${date:format=yyyyMMddHH}.Debug.log"
- deleteOldFileOnStartup="false"
- layout="${longdate} ${callsite:className=false:methodName=false:fileName=true:includeSourcePath=false:skipFrames=2} ${message}" />
- </targets>
- <targets async="true">
- <target name="ClientInfo" xsi:type="File"
- bufferSize="10240"
- openFileCacheTimeout="30"
- keepFileOpen="true"
- archiveNumbering="Date"
- archiveEvery="Hour"
- archiveDateFormat="yyyyMMddHH"
- archiveFileName="${basedir}/Logs/${logger}.{#}.Info.log"
- fileName="${basedir}/Logs/${logger}.${date:format=yyyyMMddHH}.Info.log"
- deleteOldFileOnStartup="false"
- layout="${longdate} ${message}" />
- </targets>
- <targets async="true">
- <target name="ClientWarn" xsi:type="File"
- bufferSize="10240"
- openFileCacheTimeout="30"
- keepFileOpen="true"
- archiveNumbering="Date"
- archiveEvery="Hour"
- archiveDateFormat="yyyyMMddHH"
- archiveFileName="${basedir}/Logs/${logger}.{#}.Warn.log"
- fileName="${basedir}/Logs/${logger}.${date:format=yyyyMMddHH}.Warn.log"
- deleteOldFileOnStartup="false"
- layout="${longdate} ${message}" />
- </targets>
- <targets async="true">
- <target name="ClientError" xsi:type="File"
- openFileCacheTimeout="10"
- keepFileOpen="true"
- archiveNumbering="Date"
- archiveEvery="Hour"
- archiveDateFormat="yyyyMMddHH"
- archiveFileName="${basedir}/Logs/${logger}.{#}.Error.log"
- fileName="${basedir}/Logs/${logger}.${date:format=yyyyMMddHH}.Error.log"
- deleteOldFileOnStartup="false"
- layout="${longdate} ${message}" />
- </targets>
- <targets async="true">
- <target name="InfoConsole" xsi:type="Console" layout="${longdata} ${message}" />
- </targets>
- <rules>
- <logger name="*" minlevel="Trace" maxlevel="Error" writeTo="ClientDebug" />
- <logger name="*" minlevel="Info" maxlevel="Info" writeTo="ClientInfo" />
- <logger name="*" minlevel="Warn" maxlevel="Warn" writeTo="ClientWarn" />
- <logger name="*" minlevel="Error" maxlevel="Error" writeTo="ClientError" />
- <logger name="*" minlevel="Trace" maxlevel="Error" writeTo="InfoConsole" />
- <logger name="*" minlevel="Info" maxlevel="Info" writeTo="InfoConsole" />
- <logger name="*" minlevel="Warn" maxlevel="Warn" writeTo="InfoConsole" />
- <logger name="*" minlevel="Error" maxlevel="Error" writeTo="InfoConsole" />
- </rules>
- </nlog>
|