threads and logger