Adding multi-threaded logging