check log file exists