automatically display relevant portion of log file