Add saveLogs option.
Merge pull request #4019 from HassenRiahi/AddSaveLogsOption

Add saveLogs option.