Add the thread name to the log file