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})
```
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
Close
Hashes for fluentd-log-handler-0.0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | af1f2aa6b219041d7f816d7a64b43ee8f80f998bb2faede9d743a8296f956467 |
|
MD5 | 3a74ea628bf182e3f2054e3f03f9f738 |
|
BLAKE2b-256 | 535c42aa16231c001d1df1a96a6b0a2b960af838c349acf492bbbff33da89d14 |