I have a NLog configutation that writes to a file:
<targets>
<target name="file"
xsi:type="File"
layout="${longdate} | ${level} | ${message}"
fileName="${basedir}\logs\log.txt"
archiveFileName="${basedir}\logs\log.{#}.txt"
archiveEvery="Day"
archiveNumbering="Rolling"
maxArchiveFiles="7" />
</targets>
I want the most recent record to appear at the top of the txt file, so I don't have to scroll all the way to the bottom every time I open it since the logs can get very long. This seems like it should be in the configuration, but I'm not seeing it.
Any ideas?