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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8560e21adac58e27987282310f005469f54b4e87e9cb2b5c4ba260fcbdc9ab06 |
|
MD5 | 83a22b02c39908ded7b49f86dfc7bef9 |
|
BLAKE2b-256 | e40ad7475b6aeab1c9c00ec38ecdbbf575b7dc73204513b010b8b197ac2484f1 |