def _logging_error(self, log_conf, msg): """Callback from the log layer when an error occurs""" QMessageBox.about(self, "LocoPositioningTab error", "Error when using log config", " [{0}]: {1}".format(log_conf.name, msg))