check log file and move to logs dir