Added some parameters to force regenerate or archive log file.