Small update to make sure that the writing to the log is safe across all threads using the logging framework and not just threads using the same logger. This could have a performance hit depending on how many threads are running and logging at the same time.