I am writing event data to a log file in an asp.net httphandler by using the File.AppendAllText method. I am concerned with what will happen when multiple requests are received simultaneously. Does AppendAllText lock the file it’s writing to?
Share
no, you should have a static lock object guarding the log-file write, e.g.