Write to CS.log file

Copy the output of Critical Section to the CS.log File