Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 422 Bytes

README.md

File metadata and controls

15 lines (12 loc) · 422 Bytes

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.