I have a setup where two IIS instances are configured to log files to the same location on an FTP server. For logging, I am using Serilog.
When there are simultaneous requests to both IIS instances, only one of the instances can successfully log the request. The other instance fails to log, likely due to a conflict arising from both instances trying to write to the same log file at the same time.
How can I configure Serilog or my IIS setup to handle concurrent logging requests such that both instances can log their requests without conflict? Is there a way to synchronize the logging process between the two instances?