Skip to main content

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()

Metadata

Release files for aelklog 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for aelklog 0.1.1
File Interpreter ABI Platform
aelklog-0.1.1-py3-none-any.whl Python 3 none any Details

Release files / aelklog-0.1.1-py3-none-any.whl

Download URL aelklog-0.1.1-py3-none-any.whl
Size 11.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c33c31c5e3d8cbacc93a6d6a4e37f6bc2ed9dd277c6f295b28aa9057fc1b9c5a
BLAKE2b-256 checksum
How to use checksums
7e1eda8ab730b41708cd87354fde6158ca1bc20b521f9a222e18bb6a122bc446
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.2

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page