Added fflush() in LTS log system