日志文件的合适大小(以字节为单位)是多少? [英] What is a good size (in bytes) for a log file?
本文介绍了日志文件的合适大小(以字节为单位)是多少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用python 记录模块
I am using the python logging modules RotatingFileHandler, and you can set the maximum size of each log file. What is a good maximum size for a log file? Please give your answer in bytes.
推荐答案
我的默认日志记录设置:
My default logging setup:
RotatingFileHandler(filename, maxBytes=10*1024*1024, backupCount=5)
这篇关于日志文件的合适大小(以字节为单位)是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文