logfile_multithread_code