123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- <?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="ServerDebug" xsi:type="File"
- openFileCacheTimeout="10"
- keepFileOpen="true"
- archiveNumbering="Date"
- archiveEvery="Hour"
- archiveDateFormat="yyyyMMddHH"
- archiveFileName="${basedir}/../Logs/${logger}.${var:appIdFormat}.{#}.Debug.log"
- fileName="${basedir}/../Logs/${logger}.${var:appIdFormat}.${date:format=yyyyMMddHH}.Debug.log"
- deleteOldFileOnStartup="false"
- layout="${longdate} ${callsite:className=false:methodName=false:fileName=true:includeSourcePath=false:skipFrames=3} ${message}" />
- </targets>
- <targets async="true">
- <target name="ServerInfo" xsi:type="File"
- bufferSize="10240"
- openFileCacheTimeout="30"
- keepFileOpen="true"
- archiveNumbering="Date"
- archiveEvery="Hour"
- archiveDateFormat="yyyyMMddHH"
- archiveFileName="${basedir}/../Logs/${logger}.${var:appIdFormat}.{#}.Info.log"
- fileName="${basedir}/../Logs/${logger}.${var:appIdFormat}.${date:format=yyyyMMddHH}.Info.log"
- deleteOldFileOnStartup="false"
- layout="${longdate} ${message}" />
- </targets>
- <targets async="true">
- <target name="ServerWarn" xsi:type="File"
- bufferSize="10240"
- openFileCacheTimeout="30"
- keepFileOpen="true"
- archiveNumbering="Date"
- archiveEvery="Hour"
- archiveDateFormat="yyyyMMddHH"
- archiveFileName="${basedir}/../Logs/${logger}.${var:appIdFormat}.{#}.Warn.log"
- fileName="${basedir}/../Logs/${logger}.${var:appIdFormat}.${date:format=yyyyMMddHH}.Warn.log"
- deleteOldFileOnStartup="false"
- layout="${longdate} ${message}" />
- </targets>
- <targets async="true">
- <target name="ServerError" xsi:type="File"
- openFileCacheTimeout="10"
- keepFileOpen="true"
- archiveNumbering="Date"
- archiveEvery="Hour"
- archiveDateFormat="yyyyMMddHH"
- archiveFileName="${basedir}/../Logs/${logger}.${var:appIdFormat}.{#}.Error.log"
- fileName="${basedir}/../Logs/${logger}.${var:appIdFormat}.${date:format=yyyyMMddHH}.Error.log"
- deleteOldFileOnStartup="false"
- layout="${longdate} ${message}" />
- </targets>
- <targets async="true">
- <target name="ServerConsole" xsi:type="Console"
- layout="${longdate} ${callsite:className=false:methodName=false:fileName=true:includeSourcePath=false:skipFrames=3} ${message}" />
- </targets>
- <targets async="true">
- <target name="Watcher" xsi:type="File"
- openFileCacheTimeout="10"
- keepFileOpen="true"
- fileName="${basedir}/../Logs/${logger}.${var:appIdFormat}.Debug.log"
- deleteOldFileOnStartup="false"
- layout="${longdate} ${callsite:className=false:methodName=false:fileName=true:includeSourcePath=false:skipFrames=3} ${message}" />
- </targets>
- <targets async="true">
- <target name="RobotConsole" xsi:type="Console" layout="${message}" />
- </targets>
- <rules>
- <logger ruleName="ServerDebug" name="Server" minlevel="Trace" maxlevel="Error" writeTo="ServerDebug" />
- <logger ruleName="ServerInfo" name="Server" minlevel="Info" maxlevel="Info" writeTo="ServerInfo" />
- <logger ruleName="ServerWarn" name="Server" minlevel="Warn" maxlevel="Warn" writeTo="ServerWarn" />
- <logger ruleName="ServerError" name="Server" minlevel="Error" maxlevel="Error" writeTo="ServerError" />
- <logger ruleName="ServerConsole" name="Server" minlevel="Trace" maxlevel="Error" writeTo="ServerConsole" />
- <logger ruleName="Watcher" name="Watcher" minlevel="Trace" maxlevel="Error" writeTo="Watcher" />
- </rules>
- </nlog>
|