update log file format

modify endl -> \n  in string