I'm developing a time-critical ASMX web service and I'm currently using own class with static methods to write lines to shared log file. Logging is not guarded by locks/Monitors because application writes log quite a lot. I don't know what happens if a thread is scheduled out while in static method writing a line and another thread scheduled in also writes. Now I'm asking what is the best way to implement logging?
Thank you - matti