pyfluentA Python client library for Fluentd | |
Download |
pyfluent Ranking & Summary
Advertisement
- License:
- MIT/X Consortium Lic...
- Price:
- FREE
- Publisher Name:
- Yoshihisa Tanaka
- Publisher web site:
- https://github.com/yosisa/
pyfluent Tags
pyfluent Description
pyfluent is a Python library for Fluentd.Notice: since this is very early release, the api may change on a future version.The primary purpose is to provide pythonic way to transmit JSON message to fluentd.pyfluent has these features.- Simplicity: easy to use interface.- Consistency: a message is not lost even if a connection is lost.- Speed: using MessagePack and directly connect to fluentd's in_forward plugin.UsageSince pyfluent logging library implemented like python standard logging library, It is very easy to introduce pyfluent into existing programs.Here is a basic usage:import loggingimport pyfluent.logginghost = 'localhost'port = 24224tag = 'pyfluent'handler = pyfluent.logging.SafeFluentHandler(host, port, tag)handler.setLevel(logging.INFO)logger = logging.getLogger()logger.setLevel(logging.INFO)logger.addHandler(handler)logger.info('hello pyfluent!')Product's homepage
pyfluent Related Software