Python logging模块 参考1:python logging模块使用教程 - 简书 (jianshu.com) python 重写logging.Handler的emit 实现日志输出到 redis 数据库