fix log file name, added log time limit