reading the log file