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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c845dc18739dbe396c55b34cd48e2305f334316f2c37809c960623d08ee6d01d |
|
MD5 | 791d8ba838b7fecf1bd18b4c15dd95cd |
|
BLAKE2b-256 | f2fb6831908775aa353344ef925ae45d1f04dcc1f0eba67367fff61ab417d5c4 |