Overloaded emit() function from the logger module.

        The supplied log record is added to the log buffer and the
        sigNewLog signal triggered.

        .. note:: this method is always only called from the
          ``logger`` module.

def emit(self, record):
        """
        Overloaded emit() function from the logger module.

        The supplied log record is added to the log buffer and the
        sigNewLog signal triggered.

        .. note:: this method is always only called from the
          ``logger`` module.
        """
        self.log.append(record)

        # Do not trigger the signal again if no one has fetched any
        # data since it was last set.
        if not self.waitForFetch:
            self.waitForFetch = True
            self.sigNewLog.emit()