Crates.io | tracing-for-pyo3-logging |
lib.rs | tracing-for-pyo3-logging |
version | 0.0.4 |
source | src |
created_at | 2022-03-07 05:02:21.639266 |
updated_at | 2023-10-12 13:48:50.992852 |
description | Enables `tracing` for pyo3-based embedded Python applications using Python's `logging` module. |
homepage | |
repository | https://github.com/danielschemmel/tracing-for-pyo3-logging/ |
max_upload_size | |
id | 544824 |
size | 17,958 |
Enables tracing for pyo3-based embedded Python applications using Python's logging
module.
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)
})?;
Enable the log
feature if the host uses a log
based logger instead.