...
Code Block |
---|
C:\Program Files (x86)\Flip Group\Message Transmitter |
Edit the file nlog
section in the MT.Transformer.WS.exe.config
by adding the following code to it <nlog>
<targets>
file to look like below, replacing Code Block 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> |