摘要: import osimport loggingimport refrom logging.handlers import TimedRotatingFileHandlerdef setup_log(log_name): # 创建logger对象。传入logger名字 log_ger = loggin 阅读全文
posted @ 2021-01-04 10:55 samcheng 阅读(1097) 评论(0) 推荐(0) 编辑
摘要: import loggingimport os.pathimport timeclass Log(object): my_log = logging.getLogger() def __init__(self): # 创建自己的日志收集器 # self.my_log = logging.getLog 阅读全文
posted @ 2021-01-04 10:41 samcheng 阅读(118) 评论(0) 推荐(0) 编辑