معرفی شرکت ها


fluent-http-0.1.0


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Fluentd logger client for HTTP input
ویژگی مقدار
سیستم عامل -
نام فایل fluent-http-0.1.0
نام fluent-http
نسخه کتابخانه 0.1.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده -
ایمیل نویسنده JM Robles <roblesjm@gmail.com>
آدرس صفحه اصلی -
آدرس اینترنتی https://pypi.org/project/fluent-http/
مجوز Copyright 2022 JM Robles Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# Fluent HTTP Python Logger Handler A logger handler for [fluentd](fluent) logging collector. ## How to use it ```python import logging from fluent_http import FluentHttpHandler logger = logging.getLogger(__name__) fluent_http_handler = FluentHttpHandler(url='localhost', port=9880, tag='app.python') logger.addHandler(fluent_http_handler) # Test it! logger.warning('Houston, we have a problem') ``` ### JSON logging Install `python-json-logger` before ```bash pip install python-json-logger ``` ```python import logging from pythonjsonlogger import jsonlogger from fluent_http import FluentHttpHandler logger = logging.getLogger(__name__) fluent_http_handler = FluentHttpHandler(url='localhost', port=9880, tag='app.python') fluent_http_handler.setFormatter(jsonlogger.JsonFormatter(timestamp=True)) logger.addHandler(fluent_http_handler) logger.setLevel(logging.INFO) # Test it! logger.info('purchase done', extra={'item_id': 12345, 'quantity': 4, 'total_price': 32412}) ``` ## Protected under Auth Basic HTTP ```python ... fluent_http_handler = FluentHttpHandler(url='https://fluent.example.com', port=443, tag='app.python', username='user', password='a_password') ... ``` ## License MIT License


نیازمندی

مقدار نام
>=2.0.0 requests


زبان مورد نیاز

مقدار نام
>=3.6 Python


نحوه نصب


نصب پکیج whl fluent-http-0.1.0:

    pip install fluent-http-0.1.0.whl


نصب پکیج tar.gz fluent-http-0.1.0:

    pip install fluent-http-0.1.0.tar.gz