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', task_name='국민연금고지액조회')
logger = logging.getLogger('neil')
logger.addHandler(handler)
logger.error('에러 발생')
```
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', task_name='국민연금고지액조회')
logger = logging.getLogger('neil')
logger.addHandler(handler)
logger.error('에러 발생')
```
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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24befc84b73b7111e57d8682b9b63db3aeaf75fdf3f2678d0dc0a71eec5afc8d |
|
MD5 | 749939f1765a343ddeeda4c38d6d8008 |
|
BLAKE2b-256 | 9a02dcdcf7d1ec400fd3ef6bdeeeec79e45153180e55fec12e0a9a42c5667adf |