code: def create_logger(name, formatter=None, handler=None, level=None):
      
      logger = logging.getLogger(name)
  
      #: remove existing handlers
      logger.handlers = []
  
      #: use a standard out handler
      if handler is None:
          handler = logging.StreamHandler(sys.stdout)
  
      #: set the formatter when a formatter is given
      if formatter is not None:
          handler.setFormatter(formatter)
  
      #: set DEBUG level if no level is specified
      if level is None:
          level = logging.DEBUG
  
      handler.setLevel(level)
      logger.setLevel(level)
      logger.addHandler(handler)
      return logger
docs: Returns a new logger for the specified name.