<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_pyftpsync_logger(logger=True):
 """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. """

    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