forensic-rs 0.13.1

A Rust-based framework to build tools that analyze forensic artifacts and can be reused as libraries across multiple projects without changing anything.
Documentation
use std::time::Duration;

use forensic_rs::notifications::{testing_notifier_dummy, NotificationType};


#[cfg(not(lib_build))]
#[macro_use]
extern crate forensic_rs;

#[test]
fn test_all_notifications() {
    let receiver = testing_notifier_dummy();
    notify_informational!(NotificationType::AntiForensicsDetected, "This is log name: {}", "PEPE");
    notify_info!(NotificationType::AntiForensicsDetected, "This is log name: {}", "PEPE");
    notify_low!(NotificationType::AntiForensicsDetected, "This is log name: {}", "PEPE");
    notify_medium!(NotificationType::AntiForensicsDetected, "This is log name: {}", "PEPE");
    notify_high!(NotificationType::AntiForensicsDetected, "This is log name: {}", "PEPE");
    notify_critical!(NotificationType::AntiForensicsDetected, "This is log name: {}", "PEPE");
    for _i in 0..6 {
        let msg = receiver
            .recv_timeout(Duration::from_millis(1000))
            .expect("Should send a message");
        println!("{:?}", msg);
    }
}