A simple logging package that sends logs asynchronously to ELK with customizable fields.
Project description
aelklog
A simple logging package that sends logs asynchronously to ELK with customizable fields.
Usage
import aelklog
log4km = aelklog.setup_logstash_logger(logger_name="raster_image_4km", logstash_host="192.168.77.8", logstash_port=5045)
log16km = aelklog.setup_logstash_logger(logger_name="raster_image_16km", logstash_host="192.168.77.8", logstash_port=5045)
def test4km():
log4km.warning("test", extra={"custom_fields": {"who": "you"}})
def test16km():
log16km.warning("test", extra={"custom_fields": {"who": "fangj"}})
if __name__ == '__main__':
test4km()
test16km()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
aelklog-0.1.1-py3-none-any.whl
(11.0 kB
view details)
File details
Details for the file aelklog-0.1.1-py3-none-any.whl.
File metadata
- Download URL: aelklog-0.1.1-py3-none-any.whl
- Upload date:
- Size: 11.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c33c31c5e3d8cbacc93a6d6a4e37f6bc2ed9dd277c6f295b28aa9057fc1b9c5a
|
|
| MD5 |
6c1f760cc73254a3f3f2626b71d6fdab
|
|
| BLAKE2b-256 |
7e1eda8ab730b41708cd87354fde6158ca1bc20b521f9a222e18bb6a122bc446
|