Added formatting to the logger