Fix links in `logging.md`

This commit is contained in:
messense 2023-01-03 20:03:51 +08:00
parent 6da1fc7191
commit c722402e46
No known key found for this signature in database
GPG Key ID: BB41A8A2C716CCA9
1 changed files with 4 additions and 3 deletions

View File

@ -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