https://github.com/vorner/log-reroute
Utility to allow changing the destination of the Rust log crate at runtime, as many times as needed.
https://github.com/vorner/log-reroute
Last synced: 8 months ago
JSON representation
Utility to allow changing the destination of the Rust log crate at runtime, as many times as needed.
- Host: GitHub
- URL: https://github.com/vorner/log-reroute
- Owner: vorner
- License: apache-2.0
- Created: 2018-05-27T17:42:53.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2021-09-12T15:10:36.000Z (almost 5 years ago)
- Last Synced: 2025-01-27T06:48:04.827Z (over 1 year ago)
- Language: Rust
- Size: 44.9 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# Log-reroute
[](https://github.com/vorner/log-reroute/actions)
[](https://codecov.io/gh/vorner/log-reroute)
[](https://docs.rs/log-reroute)
The [`log`](https://crates.io/crates/log) allows setting the target logger, but
only once during the lifetime of the application. This library helps with that
by providing a logger proxy. The logger behind the proxy can be switched as
necessary.