import sys
from lib_not_dr import loggers
logger = loggers.config.get_logger("transfer")
log_file_name = f"{time.strftime('%Y-%m-%d-%H-%M-%S', time.localtime())}-transfer.log"
logger.add_output(FileCacheOutputStream(file_name=log_file_name, level=0))
# 使用命令行参数来调节等级
if "-v" in sys.argv:
logger.global_level = 10
if "-vv" in sys.argv:
logger.global_level = 5