Added mutex to log, to start working on threads. Also fixed typo in Datetime format pattern