Changing the way output is logged