#python #logging-tracing #pyo3 #applications #module

tracing-for-pyo3-logging

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

5 releases

0.0.4 Oct 12, 2023
0.0.3 Jun 2, 2023
0.0.2 Feb 8, 2023
0.0.1 Nov 5, 2022
0.0.0 Mar 7, 2022

#761 in Debugging

MIT/Apache

7KB

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.

Dependencies

~3.5–8.5MB
~78K SLoC