Python logging handler for Fluentd
Project description
Python logging handler for Fluentd
Requirements(Python Package)
fluent-logger
Installation
pip install fluentd_log_handler
Example
import logging
from fluentd_log_handler.handler import NeilFluentdHandler
handler = NeilFluentdHandler(tag='app.worker')
logger = logging.getLogger('neil')
logger.addHandler(handler)
logger.error({'message': {'task': '금융정보조회', 'company_id': 123}})
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
File details
Details for the file fluentd-log-handler-0.0.7.tar.gz.
File metadata
- Download URL: fluentd-log-handler-0.0.7.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
63b881c068881725c47830f9f9bcd92862efe447bb8d668edd113e923efcdf6c
|
|
| MD5 |
29ea88383df02192b7b4c4ea952a8d15
|
|
| BLAKE2b-256 |
d5db780c20cd82614aa9cd0e6b3e1a6edb9271c520dfc2d01a82df8cbe7a796d
|