Simple python logging handler for forwarding logs to a kafka server.
The handler uses a logstash formatter.
Installing
$ pip install python-kafka-logger
How to use
Example for using the handler within a native logging.conf file
example/logging.conf
Get the project
Clone the git repository
$ git clone https://github.com/avihoo/python-kafka-logging/
Install a virtualenv
$ sudo apt-get install python-virtualenv
Create a new virtualenv
$ virtualenv python-kafka-logging-ve
Install project’s requirements
$ python-kafka-logging-ve/bin/pip install -r requirements.txt
Reporting Issues
If you have suggestions, bugs or other issues specific to this library, file them here or contact me at avihoo.mamka <at> gmail <dot> com.
keywords: python, logging, handler, example, kafka, logs, logstash, formatter
Metadata
Release files for python-kafka-logger 0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| python-kafka-logger-0.5.tar.gz | 3.1 kB | Details |
Release files / python-kafka-logger-0.5.tar.gz
| Download URL | python-kafka-logger-0.5.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
861d2c5606f9e1ebbb46f3c7ad4b1c87fe68b30137139400684768fc606a3f3b
|
|
BLAKE2b-256 checksum How to use checksums |
493df961fd1e4f1e2dd0f6da8bfcb559ad253ea3026c080eb4d74d755f609938
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.5.3 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/2.7.15
|