12345678910111213141516171819202122232425 |
- <?xml version="1.0" encoding="utf-8" ?>
- <!-- XSD manual extracted from package NLog.Schema: https://www.nuget.org/packages/NLog.Schema-->
- <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xsi:schemaLocation="NLog NLog.xsd"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- autoReload="true"
- internalLogFile="log//log-internal.log"
- internalLogLevel="Info" >
- <!-- the targets to write to -->
- <targets>
- <!-- write logs to file -->
- <!--${date}|${level:uppercase=true}|${message} ${exception}|${logger}|${all-event-properties}-->
- <!--keep this 2 forward slash, it both worked for windows and linux-->
- <target name="dynamicPrivateFile" xsi:type="File" enableArchiveFileCompression="true" maxArchiveFiles="20" archiveAboveSize="50000000" archiveNumbering="Sequence"
- fileName="log\\${replace:searchFor=DynamicPrivate_:replaceWith=:inner=${logger}}_${date:format=yyyyMMdd}.log"
- layout="${date:format=HH\:mm\:ss.fff} [${threadid}:${level:uppercase=true}]${logger} - ${message} ${exception}"/>
- <target name="logconsole" xsi:type="Console" />
- </targets>
- <!-- rules to map from logger name to target -->
- <rules>
- <logger name="DynamicPrivate_*" minlevel="Debug" writeTo="dynamicPrivateFile" final="true" />
- </rules>
- </nlog>
|