consolidate checks for validity of log, check time interval too