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.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 746c94391e6afc6ab9000d864c289103182472199276be5442a0b3937700dc38 |
|
MD5 | 8ca7da12cd531bda89ee44e8691e7031 |
|
BLAKE2b-256 | e414d89211cc67dcc3e815c2cae6616ed0f0de24523a4202a74e4039ac20d488 |