added synchronization to the console logger