python-logging-loki:Loki的Python日志记录处理程序-源码

上传者: 42099858 | 上传时间: 2021-06-17 14:50:31 | 文件大小: 13KB | 文件类型: ZIP
python-logging-loki Loki的Python日志记录处理程序。 安装 pip install python-logging-loki 用法 import logging import logging_loki handler = logging_loki . LokiHandler ( url = "https://my-loki-instance/loki/api/v1/push" , tags = { "application" : "my-app" }, auth = ( "username" , "password" ), version = "1" , ) logger = logging . getLogger ( "my-logger" ) logger . addHandler ( handler ) logger

文件下载

资源详情

[{"title":"( 16 个子文件 13KB ) python-logging-loki:Loki的Python日志记录处理程序-源码","children":[{"title":"python-logging-loki-master","children":[{"title":"setup.py <span style='color:#111;'> 1.19KB </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 1.36KB </span>","children":null,"spread":false},{"title":"pyproject.toml <span style='color:#111;'> 91B </span>","children":null,"spread":false},{"title":".travis.yml <span style='color:#111;'> 124B </span>","children":null,"spread":false},{"title":"logging_loki","children":[{"title":"__init__.py <span style='color:#111;'> 213B </span>","children":null,"spread":false},{"title":"handlers.py <span style='color:#111;'> 2.84KB </span>","children":null,"spread":false},{"title":"emitter.py <span style='color:#111;'> 4.84KB </span>","children":null,"spread":false},{"title":"const.py <span style='color:#111;'> 756B </span>","children":null,"spread":false}],"spread":true},{"title":"LICENSE <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false},{"title":"setup.cfg <span style='color:#111;'> 419B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 2.37KB </span>","children":null,"spread":false},{"title":"tests","children":[{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"test_emitter_v1.py <span style='color:#111;'> 4.99KB </span>","children":null,"spread":false},{"title":"test_emitter_v0.py <span style='color:#111;'> 5.13KB </span>","children":null,"spread":false}],"spread":true},{"title":".editorconfig <span style='color:#111;'> 104B </span>","children":null,"spread":false},{"title":"tox.ini <span style='color:#111;'> 574B </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

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