Flush log file for every log line, helps in cases where there is a softhang. Change-Id: I3e396678d82b57ec275c3a079fafd1d08f0706a3