wait until the log file exist