Converting logging system to use producer/consumer model.