migrate log file if exist