single threaded logger