Added the class saveLogsThread