pypet/pypetlogging.py
def _set_logger(self, name=None):
        """Adds a logger with a given `name`.

        If no name is given, name is constructed as
        `type(self).__name__`.

        """
        if name is None:
            cls = self.__class__
            name = '%s.%s' % (cls.__module__, cls.__name__)
        self._logger = logging.getLogger(name)
def _set_logger(self, name=None):
        if name is None:
            cls = self.__class__
            name = '%s.%s' % (cls.__module__, cls.__name__)
        self._logger = logging.getLogger(name)
def _set_logger ( self , name = None ) : if name is None : cls = self . __class__ name = '%s.%s' % ( cls . __module__ , cls . __name__ ) self . _logger = logging . getLogger ( name )
Adds a logger with a given `name`.

        If no name is given, name is constructed as
        `type(self).__name__`.
Adds a logger with a given name .