基于MongoDB的日志系统Mongodb-Log.zip

上传者: 39841848 | 上传时间: 2020-01-03 11:39:34 | 文件大小: 108KB | 文件类型: zip
mongodb-log 是一个基于MongoDB的Python日志系统。 MongoDB 的 Capped Collection是一个天生的日志系统,MongoDB自己的oplog就是用它来存储的,Capped Collection的特点是可以指定Collection的大小,当记录总大小超过设定大小后,老的数据会被自动抹掉用于存储新的内容。 示例代码: import logging from mongolog.handlers import MongoHandler log = logging.getLogger('demo') log.setLevel(logging.DEBUG) log.addHandler(MongoHandler.to(db='mongolog', collection='log')) log.debug('Some message')


标签:Mongodb

文件下载

资源详情

[{"title":"( 33 个子文件 108KB ) 基于MongoDB的日志系统Mongodb-Log.zip","children":[{"title":"mongodb-log-master","children":[{"title":"tools","children":[{"title":"webui","children":[{"title":"templates","children":[{"title":"index.html <span style='color:#111;'> 815B </span>","children":null,"spread":false},{"title":"base.html <span style='color:#111;'> 685B </span>","children":null,"spread":false}],"spread":true},{"title":"static","children":[{"title":"css","children":[{"title":"ui-darkness","children":[{"title":"images","children":[{"title":"ui-icons_222222_256x240.png <span style='color:#111;'> 4.27KB </span>","children":null,"spread":false},{"title":"ui-icons_cccccc_256x240.png <span style='color:#111;'> 4.27KB </span>","children":null,"spread":false},{"title":"ui-bg_inset-soft_25_000000_1x100.png <span style='color:#111;'> 98B </span>","children":null,"spread":false},{"title":"ui-bg_inset-soft_30_f58400_1x100.png <span style='color:#111;'> 117B </span>","children":null,"spread":false},{"title":"ui-bg_flat_50_5c5c5c_40x100.png <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"ui-icons_a83300_256x240.png <span style='color:#111;'> 5.23KB </span>","children":null,"spread":false},{"title":"ui-bg_glass_40_0078a3_1x400.png <span style='color:#111;'> 179B </span>","children":null,"spread":false},{"title":"ui-bg_glass_20_555555_1x400.png <span style='color:#111;'> 115B </span>","children":null,"spread":false},{"title":"ui-bg_gloss-wave_25_333333_500x100.png <span style='color:#111;'> 1.83KB </span>","children":null,"spread":false},{"title":"ui-bg_flat_30_cccccc_40x100.png <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"ui-bg_highlight-soft_80_eeeeee_1x100.png <span style='color:#111;'> 95B </span>","children":null,"spread":false},{"title":"ui-bg_glass_40_ffc73d_1x400.png <span style='color:#111;'> 131B </span>","children":null,"spread":false},{"title":"ui-icons_ffffff_256x240.png <span style='color:#111;'> 4.27KB </span>","children":null,"spread":false},{"title":"ui-icons_4b8e0b_256x240.png <span style='color:#111;'> 5.23KB </span>","children":null,"spread":false}],"spread":false},{"title":"jquery-ui-1.7.2.custom.css <span style='color:#111;'> 26.78KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"js","children":[{"title":"jquery-ui-1.7.2.custom.min.js <span style='color:#111;'> 188.11KB </span>","children":null,"spread":false},{"title":"jquery-1.3.2.min.js <span style='color:#111;'> 55.91KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"settings.py <span style='color:#111;'> 107B </span>","children":null,"spread":false},{"title":"webui.py <span style='color:#111;'> 870B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"test.py <span style='color:#111;'> 87B </span>","children":null,"spread":false},{"title":"tests","children":[{"title":"test_config.py <span style='color:#111;'> 2.52KB </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 96B </span>","children":null,"spread":false},{"title":"logging-test.config <span style='color:#111;'> 356B </span>","children":null,"spread":false},{"title":"test_handler.py <span style='color:#111;'> 2.33KB </span>","children":null,"spread":false}],"spread":true},{"title":"LICENSE <span style='color:#111;'> 1.28KB </span>","children":null,"spread":false},{"title":"samples","children":[{"title":"simple_logging.py <span style='color:#111;'> 471B </span>","children":null,"spread":false}],"spread":true},{"title":"setup.py <span style='color:#111;'> 424B </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 12B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 202B </span>","children":null,"spread":false},{"title":"mongolog","children":[{"title":"__init__.py <span style='color:#111;'> 76B </span>","children":null,"spread":false},{"title":"handlers.py <span style='color:#111;'> 1.86KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明