Newline characters always appended to flog, fflush added