Skip to content

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

License

Notifications You must be signed in to change notification settings

cyber-francis/structlog_telemetry

Repository files navigation

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.