improve formatting of logs