#logging-tracing #python #module #embedded-applications #setup-logging

tracing-for-pyo3-logging

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

8 releases

0.0.7 Oct 22, 2025
0.0.6 Oct 6, 2025
0.0.5 Jul 1, 2025
0.0.4 Oct 12, 2023
0.0.0 Mar 7, 2022

#430 in Debugging

Download history 6/week @ 2025-08-16 2/week @ 2025-08-23 3/week @ 2025-09-13 6/week @ 2025-09-20 4/week @ 2025-09-27 133/week @ 2025-10-04 40/week @ 2025-10-11 167/week @ 2025-10-18 33/week @ 2025-10-25 10/week @ 2025-11-01

255 downloads per month

MIT/Apache

6KB

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::attach(|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.

Dependencies

~3MB
~60K SLoC