def __init__(self, module, log_file_path, fail_fast=False):
super(DSRFLogger, self).__init__('')
self.first_error = None
self._counts = defaultdict(int)
self.fail_fast = fail_fast
self.logger = logging.getLogger(module)
self.log_file_path = log_file_path
logging.basicConfig(
filename=log_file_path, filemode='w', level=logging.DEBUG)
logging.setLoggerClass(DSRFLogger)
评论列表
文章目录