Is there any way to create a log file with NLOG will just contain the latest message. Basically I don’t want to append to the log and have it only contain the latest message. The goal is to create a log file out of each of hundreds of processes that are running so I can have a separate process look at those logs to verify that a process is up and running.
Share
The File target has a property replaceFileContentsOnEachWrite – indicates whether to replace file contents on each write instead of appending log message at the end.
http://nlog-project.org/wiki/File_target#File_replaceFileContentsOnEachWrite