docs: def log_to_console(status=True, level=None):
      """Log events to  the console.
  
      Args:
          status (bool, Optional, Default=True)
              whether logging to console should be turned on(True) or off(False)
          level (string, Optional, Default=None) :
              level of logging; whichever level is chosen all higher levels will be logged.
              See: https://docs.python.org/2/library/logging.html#levels
        """
  
      if status:
          if level is not None:
              logger.setLevel(level)
  
          console_handler = logging.StreamHandler()
          # create formatter
          formatter = logging.Formatter('%(levelname)s-%(name)s: %(message)s')
          # add formatter to handler
          console_handler.setFormatter(formatter)
          logger.addHandler(console_handler)
  
          logger.info("GSSHApy {0}".format(version()))
  
      else:
          for h in logger.handlers:
              if type(h).__name__ == 'StreamHandler':
                  logger.removeHandler(h)