Skip to main content

Python logging handler for Fluentd

Project description

Python logging handler for Fluentd

Requirements(Python Package)

  • fluent-logger

Installation

pip install fluentd_log_handler

Example

import logging
from fluentd_log_handler.handler import NeilFluentdHandler

handler = NeilFluentdHandler(tag='app.worker')

logger = logging.getLogger('neil')
logger.addHandler(handler)

logger.error({'message': {'task': '금융정보조회', 'company_id': 123}})

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fluentd-log-handler-0.0.7.tar.gz (1.9 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page