Merge #2852
2852: Fix links in `logging.md` r=adamreichold a=messense It's broken: https://pyo3.rs/main/ecosystem/logging After: https://deploy-preview-2852--pyo3.netlify.app/main/ecosystem/logging Co-authored-by: messense <messense@icloud.com>
This commit is contained in:
commit
09470eb42c
|
@ -60,6 +60,7 @@ possible to satisfy, read the documentation about [caching].
|
|||
To have python logs be handled by Rust, one need only register a rust function to handle logs emitted from the core python logging module.
|
||||
|
||||
This has been implemented within the [pyo3-pylogger] crate.
|
||||
|
||||
```rust
|
||||
use log::{info, warn};
|
||||
use pyo3::prelude::*;
|
||||
|
@ -88,7 +89,7 @@ logging.error('Something bad happened')
|
|||
)
|
||||
})
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
[logging]: https://docs.python.org/3/library/logging.html
|
||||
[pyo3-log]: https://crates.io/crates/pyo3-log
|
||||
|
|
Loading…
Reference in New Issue