put new line while writing a log to file