Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
C:\Program Files (x86)\Flip Group\Message Transmitter

image-20240916-235334.png

Edit the file nlog section in the MT.Transformer.WS.exe.config by adding the following code to it Code Block<nlog> <targets> file to look like below, replacing C:/Temp/mt.log with the full path to where the log file should be written.

Code Block
<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <configSections>
    ...
    <section name="nlog" type="NLog.Config.ConfigSectionHandler, NLog" />
  </configSections>
  <nlog>
    <extensions>
      <add assembly="Microsoft.ApplicationInsights.NLogTarget" />
    </extensions>
    <targets>
      <target type="ApplicationInsightsTarget" name="aiTarget" />
      <target name="logfile" type="File" fileName="

...

C:/Temp/mt.log" />
    

...

</targets>
    

...

<rules>

...


      <logger name="*" minlevel="Trace" writeTo="aiTarget" />
      <logger name="*" minlevel="Trace" writeTo="logfile" />
   

...

 </rules>
  </nlog>
</configuration>