check if the log file exists.

check if the log file exists.