flush putLog log everytime has new log