def METHOD_NAME(self):
    if self._machine_log:
        STATUS.connect('machine-log-changed',lambda w: self.loadLog())
    elif self._integrator_log:
        STATUS.connect('periodic', self._periodicCheck)