11 releases (5 breaking)
new 0.5.0 | Dec 19, 2024 |
---|---|
0.4.0 | Dec 16, 2024 |
0.3.0 | Dec 13, 2024 |
0.2.0 | Dec 8, 2024 |
0.0.5 | Mar 13, 2023 |
#242 in Debugging
566 downloads per month
37KB
687 lines
call_logger
A logger that calls another application, script or URL for every logged item, passing a formatted string that contains the details of the log event.
Usage
Use of the builder model to set up the logger to call a script called store_log
:
use call_logger::CallLogger;
use log::LevelFilter;
fn main() {
let _ = CallLogger::new()
.with_level(LevelFilter::Info)
.with_call_target("store_log".to_string())
.with_local_timestamp()
.init();
log::info!("Hello logging world")
}
Features
timestamps
- add a timestamp to the output
Contribute
This is just a general purpose logger that calls out to another process. If you have any ideas for missing features, please raise an issue or a PR.
Dependencies
~2.6–4MB
~72K SLoC