code: def enable(logger=logger,
             level=logging.INFO,
             format=DETAIL_LOG_FORMAT,
             echo=True):
      
      global _handler
      if _handler is None:
          _handler = logging.StreamHandler()
          formatter = logging.Formatter(format)
          _handler.setFormatter(formatter)
  
      level = logging._checkLevel(level)
      levelName = logging._levelToName[level]
  
      logger.setLevel(level)
      _handler.setLevel(level)
  
      if _handler not in logger.handlers:
          logger.addHandler(_handler)
  
      if echo:
          logger.log(
              level, 'Logging enabled at level {name}.'.format(name=levelName))
docs: Enable simple console logging for this module