I am developing a windows service in C# which will likely write several times per second to a log. I am currently using System.IO.File.AppendAllText(time + message)
for each operation and I am concerned so many writes may wear out the disk quickly.
Could this be a problem? Should I use a stream and flush every few seconds? Does the windows disk buffer protect against this?