add \n in error log file