rustwide 0.23.0

Execute your code on the Rust ecosystem.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use log::{LevelFilter, info};
use rustwide::logging::{self, LogStorage};

#[test]
#[should_panic = "called capture without initializing rustwide::logging"]
fn test_not_initialized() {
    let storage = LogStorage::new(LevelFilter::Info);
    logging::capture(&storage, || {
        info!("Hello world");
    });
}