fix log format and empty log file when exports log on "Watch log"