Fix logger so output is properly formatted