tracing-for-pyo3-logging

Crates.iotracing-for-pyo3-logging
lib.rstracing-for-pyo3-logging
version0.0.4
sourcesrc
created_at2022-03-07 05:02:21.639266
updated_at2023-10-12 13:48:50.992852
descriptionEnables `tracing` for pyo3-based embedded Python applications using Python's `logging` module.
homepage
repositoryhttps://github.com/danielschemmel/tracing-for-pyo3-logging/
max_upload_size
id544824
size17,958
Daniel Schemmel (danielschemmel)

documentation

README

tracing-for-pyo3-logging

Enables tracing for pyo3-based embedded Python applications using Python's logging module.

Usage

Run setup_logging before using logging for the first time:

Python::with_gil(|py| {
	// Extend the `logging` module to interact with tracing
	tracing_for_pyo3_logging::setup_logging(py)
})?;

Features

Enable the log feature if the host uses a log based logger instead.

Commit count: 15

cargo fmt