def _get_logger(self):
 try:
  logger = self.logger
 except AttributeError:
  return _logger
 else:
  if (logger is None):
   logger = _logger
  return logger

def _get_logger ( self ) : try : logger = self . logger except AttributeError : return _logger else : if ( logger is None ) : logger = _logger return logger
find the specific or default logger .