python logging添加filter教程

时间:2024-01-13 03:28:21
【文件属性】:

文件名称:python logging添加filter教程

文件大小:28KB

文件格式:PDF

更新时间:2024-01-13 03:28:21

filter gi gin

例子一 def filter(self, record): """Our custom record filtering logic. Built-in filtering logic (via logging.Filter) is too limiting. """ if not self.filters: return True matched = False rname = record.name # shortcut for name in self.filters: if rname == name o


网友评论