code: def getLogger(self, component_name: str = None) -> logging.Logger:
          
          logger_name = self.root + (component_name if component_name else 'generic')
          _logger = self.loggers.get(logger_name)
          if not _logger:
              _logger = logging.getLogger(logger_name)
  
              stdio_handler = logging.StreamHandler()
              stdio_handler.setFormatter(LogFormatter())
              stdio_handler.setLevel(logging.INFO)
              _logger.addHandler(stdio_handler)
              _logger.setLevel(logging.DEBUG)
              self.loggers[logger_name] = _logger
          return _logger
docs: Get the logger instance matching ``component_name`` or create a new one if non-existent.
  
          Args:
              component_name: a neo-python component name. e.g. network, vm, db
  
          Returns:
              a logger for the specified component.