code: def set_pyftpsync_logger(logger=True):
      
      global _logger
      prev_logger = _logger
      if logger is True:
          logging.basicConfig(level=logging.INFO)
          _logger = logging.getLogger("pyftpsync")
          _logger.setLevel(logging.DEBUG)
      else:
          _logger = logger
      return prev_logger
docs: Define target for common output.
  
      Args:
          logger (bool | None | logging.Logger):
              Pass None to use `print()` to stdout instead of logging.
              Pass True to create a simple standard logger.