123456789101112131415161718192021222324252627 |
- <?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"
- xsi:schemaLocation="http://www.nlog-project.org/schemas/NLog.xsd NLog.xsd"
- autoReload="true">
- <!-- optional, add some variables
- https://github.com/nlog/NLog/wiki/Configuration-file#variables
- -->
- <variable name="myvar" value="myvalue"/>
- <!--
- See https://github.com/nlog/nlog/wiki/Configuration-file
- for information on customizing logging rules and outputs.
- -->
- <targets async="true">
- <target xsi:type="File" name="file" fileName="${basedir}/Log/Nlogs/OTS ${shortdate}.log"
- layout="${longdate} ${message}" />
- <target name="control" xsi:type="RichTextBox" controlName="richTextBox_Nlog" formName="OTSMeasureOutputNlog" maxLines="10000" autoScroll="true" useDefaultRowColoringRules="true" layout="${longdate} ${message}"/>
- </targets>
- <rules>
- <!-- add your logging rules here -->
- <logger name="*" minlevel="Trace" writeTo="control"/>
- <logger name="*" minlevel="Trace" writeTo="File" />
- </rules>
- </nlog>
|