code: def getLogger(name=None, **kwargs):
      
      adapter = _LOGGERS.get(name)
      if not adapter:
          # NOTE(jd) Keep using the `adapter' variable here because so it's not
          # collected by Python since _LOGGERS contains only a weakref
          adapter = KeywordArgumentAdapter(logging.getLogger(name), kwargs)
          _LOGGERS[name] = adapter
      return adapter
docs: Build a logger with the given name.
  
      :param name: The name for the logger. This is usually the module
                   name, ``__name__``.
      :type name: string