2020
10-10
10-10
Python日志器使用方法及原理解析
日志记录,监控,便于定位bug进行二次封装importosimportloggingfromscripts.handle_yamlimportdo_yamlfromscripts.handle_pathimportLOG_PATHclassHandleLog:def__init__(self,name=None):ifnameisNone:self.my_logger=logging.getLogger("testcase")else:self.my_logger=logging.getLogger(name)self.my_logger.setLevel(do_yaml.get_data("log","logger_level"))console_hand...
继续阅读 >