How to lock the processes for writing in to the log file.
Now all the process does not synchronize and all the processes write to single log file and some of the logging information is missed.
How can I create a separate log file for each processes or synchronize all processes to write to single log file