Crate pyo3_pylogger

Source

Functions§

register
Convenience function to register the rust logger with the Python logging instance.
setup_logging
Registers the host_log function in rust as the event handler for Python’s logging logger This function needs to be called from within a pyo3 context as early as possible to ensure logging messages arrive to the rust consumer.