def _log(self, msg, level='info'):
    getattr(logger, level)('<debug>{}:</debug> {}'.format(self._name, msg))
def _log(self, msg, level='info'):
    getattr(logger, level)('<debug>{}:</debug> {}'.format(self._name, msg))