Hello:
I have a multi-threaded C# application, developed with Visual Studio 2013, based on .Net 4.5.
I got NLog using Nuget. I currently have the following installed: NLog,Version 4.2.0.
my NLog Config file looks like this:
<target name="asyncWrapper" xsi:Type="AsyncWrapper" queueLimit="20000">
<target name="LogFile"
xsi:type="File"
fileName="C:\QRT\Logs\QRTLog-${shortdate}.log"
layout="${date:format=yyyy-MM-dd HH\:mm\:ss.fff}|${level}|${threadid}|${threadname}|${event-properties:item=FromID}|${message}${exception:format=tostring} "
concurrentWrites="true" />
</target>
<rules>
<logger name="*" minlevel="Debug" writeTo="ColoredConsole" />
<logger name="*" minlevel="Debug" writeTo="LogFile" />
</rules>
At the start of my program, I log a Trace, Debug, Info, Warn, Error, and Fatal message.
Running on my local Windows 7 machine, which has .NET 4.5.2, I see all these on the Console and in the logfile.
Running the same executable on a Windows 2008 Server, I see all these on the Console BUT NOT IN THE LOG FILE.
I enabled NLog internal trace and there are no errors.
Any help / pointers would be greatly appreciated. I've been trying to debug thisfor over a month now and am about to give up and implement my own logging routine manually (which I did and it works by the way... but it it simple streamwriter).
Thanks
-Ed