better formating the error entrys in log