def log_result_to_file(self):
        """
        Logging each test to a log file that can be used for troubleshooting. Is done by the use of the object repr function
        """
        output = self.__repr__()
        output_file = open(LOG_OUTPUT_FILE, 'a')
        try:
            output_file.write(output)
        except Exception:
            print(str(self.command_name) + "was not documented successfully")
        output_file.close()

        Logging each test to a log file that can be used for troubleshooting. Is done by the use of the object repr function
        
DataConnectors/Syslog/Sentinel_AMA_troubleshoot.py