/structlog_telemetry

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

Primary LanguagePythonMIT LicenseMIT

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.