A thread safe log file generator