better formatting of logs