Python中文
首页
教程
问答
标签
搜索
登录
注册
RotatingFileHandler和logrotate.d+WatchedFileHandler对于Python日志循环有区别吗?
回答此问题可获得
20
贡献值,回答如果被采纳可获得
50
分。
<p>Python有自己的<code>RotatingFileHandler</code>,它应该自动循环日志文件。作为一个linux应用程序的一部分,它需要每隔几周/几个月轮换一次日志文件,我想知道这与在<code>logrotate.d</code>中使用一个<code>WatchedFileHandler</code>有什么不同。在</p> <p>他们的运作方式有什么不同吗?一种方法更安全、更有效,还是被认为优于另一种方法?在</p>
0 条评论
分类:
Python问答
请先
登录
后评论
默认排序
时间排序
1 个回答
匿名
1天前
擅长:python、mysql、java
<p>RotatingFileHandler允许日志文件增大到N大小,然后立即自动旋转到新文件。在</p> <p>logrotate.d通常每天运行一次。如果要限制日志文件的大小,logrotate.d不是最有用的,因为它只定期运行。在</p>
请先
登录
后评论
针对此问题:
更多的回答
关注
89
关注
收藏
1
收藏,
216
浏览
网友 提问于 2天前
相关Python问题
区分轴上的像素大小
10 回答
区分过度拟合与良好预测
10 回答
区分通过POST接收的数据并在Cherrypy中获取
8 回答
区分重写和重载
9 回答
区分金贾二号的类型
1 回答
区别:IF IN和IF==python
9 回答
区别:list.append()与incrementequal?
6 回答
区别:创建在启动wx应用程序时不“阻止”控制台的脚本
9 回答
区别于python中的命令行和CGI
8 回答
区别关系
10 回答
区别是什么APIClient.enforce\ csrf\检查以及APIClient.handler.enforce\ csrf\ u检查
5 回答
区块.draw()未在python空闲模式下工作
1 回答
区块链API调用输出对象名称而不是内容
7 回答
区块链nonce值随负载变化
3 回答
区块链Python语法错误(Snakecoin)
5 回答
区块链不连接到服务器和矿工
9 回答
区块链信息钱包支票支付员
3 回答
区块链和区块链密码错误
1 回答
区块链尝试向Transaction字典添加键/值以创建区块链
2 回答
区域:IOError:[Errno 22]无效模式('w')或filenam
2 回答