首页 > 其他分享 >logging

logging

时间:2023-02-26 18:46:41浏览次数:34  
标签:输出 记录器 name 记录 logging 日志

记录器Loggers 创建日志记录
处理器Handlers 将日志记录发送到适当的目标
过滤器Filters 确定要输出的日志记录
格式器Formatters 最终输出中日志记录的样式
image
image
image

记录器对象

logging.getLogger(name)
name一般是句点分割的层级值

标签:输出,记录器,name,记录,logging,日志
From: https://www.cnblogs.com/prettysky/p/17157263.html

相关文章