def disable(self):
        """Convenience method to disable this logger.

        :raises AttributeError: The disabled property is read-only, typically
                                because it was overridden in a subclass.

        .. versionadded:: 1.0
        """
        try:
            self.disabled = True
        except __HOLE__:
            raise AttributeError('The disabled property is read-only.')
dataset/ETHPy150Open getlogbook/logbook/logbook/base.py/LoggerMixin.disable