2021-10-11 18:17:36 +01:00
|
|
|
<?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"
|
2021-10-15 19:58:07 +01:00
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
|
autoReload="true"
|
|
|
|
throwConfigExceptions="true"
|
2022-06-19 23:21:36 +01:00
|
|
|
internalLogFile="./log/selector.nlog.log"
|
2021-10-15 19:58:07 +01:00
|
|
|
internalLogLevel="Info" >
|
2022-07-01 22:04:17 +01:00
|
|
|
|
|
|
|
<variable name="scopeFormat"
|
|
|
|
value="${all-event-properties:format=[[key]\:[value]]:includeScopeProperties=true:separator= }"/>
|
2021-10-15 19:58:07 +01:00
|
|
|
|
2021-10-11 18:17:36 +01:00
|
|
|
<variable name="format"
|
2022-07-01 22:04:17 +01:00
|
|
|
value="${longdate}|${level:uppercase=true}|${callsite}:${callsite-linenumber}|${message}${onexception:inner=${newline}}${exception:format=tostring,data:exceptionDataSeparator=\r\n}${newline} ${scopeFormat}"/>
|
2021-10-11 18:17:36 +01:00
|
|
|
|
|
|
|
<!-- the targets to write to -->
|
|
|
|
<targets>
|
|
|
|
<!-- write logs to file -->
|
2021-10-15 19:58:07 +01:00
|
|
|
<target xsi:type="File"
|
|
|
|
name="logfile"
|
2022-06-19 23:21:36 +01:00
|
|
|
fileName="./log/selector-${shortdate}.log"
|
2021-10-11 18:17:36 +01:00
|
|
|
layout="${format}" />
|
2021-10-15 19:58:07 +01:00
|
|
|
<target xsi:type="File"
|
|
|
|
name="tracefile"
|
2022-06-19 23:21:36 +01:00
|
|
|
fileName="./log/selector.trace-${shortdate}.log"
|
2021-10-13 23:19:47 +01:00
|
|
|
layout="${format}" />
|
2022-07-01 22:04:17 +01:00
|
|
|
<target xsi:type="ColoredConsole"
|
2021-10-11 18:17:36 +01:00
|
|
|
name="logconsole"
|
|
|
|
layout="${format}" />
|
|
|
|
</targets>
|
|
|
|
|
|
|
|
<!-- rules to map from logger name to target -->
|
|
|
|
<rules>
|
2022-11-04 21:43:20 +00:00
|
|
|
<logger name="Selector.*" minlevel="Debug" writeTo="logconsole" />
|
|
|
|
<logger name="Microsoft.*" minlevel="Warning" writeTo="logconsole" />
|
|
|
|
|
2022-07-01 22:04:17 +01:00
|
|
|
<!--<logger name="*" minlevel="Debug" writeTo="logfile" />-->
|
|
|
|
<logger name="Selector.*" minlevel="Debug" writeTo="logfile" />
|
|
|
|
<logger name="Microsoft.*" minlevel="Warning" writeTo="logfile" />
|
|
|
|
|
|
|
|
<!--<logger name="*" minlevel="Trace" writeTo="tracefile" />-->
|
|
|
|
<logger name="Selector.*" minlevel="Debug" writeTo="tracefile" />
|
|
|
|
<logger name="Microsoft.*" minlevel="Warning" writeTo="tracefile" />
|
2021-10-11 18:17:36 +01:00
|
|
|
</rules>
|
|
|
|
</nlog>
|