Skip to main content

Python logging handler for Fluentd

Project description

# Fluentd Log Handler

Python logging handler for Fluentd

## Requirements(Python Package)

- fluent-logger

## Installation

```bash
pip install fluentd_log_handler
```

## Example

```python
import logging
from fluentd_log_handler.handler import NeilFluentdHandler

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

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

logger.error({'task_name': '금융정보 조회', 'request_id': 1})
```

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.4.tar.gz (1.8 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page