replace newlines in log with " >> "