Skip to main content

A Structured Logger For Telemetry

Project description

StructLog-Telemetry

Structlog-Telemetry is a very simple custom Python structured logger library.

unittestsrelease

Installation

python3 -m pip install structlog-telemetry

Usage

from structlog_telemetry.structlog_telemetry import StructLogTelemetry

APP_NAME = "APP_X"
APP_VERSION = "v0.0.1"
logger = StructLogTelemetry(APP_NAME, APP_VERSION)


logger.info({"KEY_NOT_FOUND": "SEARCHED_KEY"})
logger.warning({"LATENCY": "30"})
logger.error({"SERVER_TIMEOUT": {"SERVER": "test.com", "TIMED_OUT_AFTER": 10}})

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

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

structlog_telemetry-0.0.29.tar.gz (78.0 kB view hashes)

Uploaded Source

Built Distribution

structlog_telemetry-0.0.29-py3-none-any.whl (4.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page