'Process the logs'

def _processLogs(self, logConn):

    try:
        if (not self.mmsAgent.haveHostDef(self.hostKey)):
            return False
        if (not self.mmsAgent.isValidMonitorConn(self.hostKey, logConn)):
            return False
        if (not self.mmsAgent.hasCommand('getLog', self.hostKey, logConn)):
            self.logger.error('This    version    of    MongoDB    does    not    support    the    getLog    command')
            time.sleep(60)
            return False
        logs = self._collectLogs(logConn)
        if (not self.mmsAgent.isValidMonitorConn(self.hostKey, logConn)):
            return False
        self.mmsAgent.setHostState(self.hostKey, 'logs', logs)
        return True
    except Exception as e:
        self.logger.error(((('Problem    collecting    log    data    from:    ' + self.hostKey) + '    -    exception:    ') + traceback.format_exc(e)))
        return False
