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
Close
Hashes for fluentd-log-handler-0.0.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63b881c068881725c47830f9f9bcd92862efe447bb8d668edd113e923efcdf6c |
|
MD5 | 29ea88383df02192b7b4c4ea952a8d15 |
|
BLAKE2b-256 | d5db780c20cd82614aa9cd0e6b3e1a6edb9271c520dfc2d01a82df8cbe7a796d |