相关疑难解决方法(0)

如何在Python中将stdout和stderr重定向到logger

我有一个记录器,有一个RotatingFileHandler.我想重定向所有Stdout与Stderr该记录器.怎么办?

python logging stdout python-3.x

30
推荐指数
8
解决办法
3万
查看次数

标签 统计

logging ×1

python ×1

python-3.x ×1

stdout ×1