def METHOD_NAME(self, enable):
    if self._log_translations == enable:
        return
    self.info('enable_translation_logging(%s)', enable)
    self._log_translations = enable
    self._setup_stroke_logging()