Updates check_logfile to support list of patterns