spdlog-rs 0.3.13

A fast and combinable Rust logging crate, inspired by the C++ logging library spdlog
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Test utils for unit tests only
//
// In this file, you can use public or private items from spdlog-rs as you wish,
// as they will be used from unit tests only.

use std::{env, fs, path::PathBuf};

use crate::sync::*;

pub static TEST_LOGS_PATH: Lazy<PathBuf> = Lazy::new(|| {
    let path = env::current_exe()
        .unwrap()
        .parent()
        .unwrap()
        .join("dev/test_logs");
    fs::create_dir_all(&path).unwrap();
    path
});