摘要: def new_logger(name='my_access',log_dir=r'D:\log'): logger = logging.getLogger(name) logger.propagate = False # 不传播父logger的消息,避免重复打印 logger.handlers.c 阅读全文
posted @ 2023-05-08 15:17 垄上行 阅读(34) 评论(0) 推荐(0) 编辑