generate a log file for errors ..
adding a CR to the end of each error line