#log #unittest #println


use log for outputing log in test and not test mode with one line code

3 releases (breaking)

Uses new Rust 2021

0.3.0 Mar 29, 2022
0.2.0 Mar 29, 2022
0.1.0 Mar 29, 2022

#247 in Testing

22 downloads per month




before using uselog_rs, you must use four lines code to use log for outputing log in test mode and not test mode

use log::{debug, info, warn};
use std::{println as debug, println as info, println as warn};

now just one line code

uselog!(debug, info, warn)

but you need to add uselog_rs to your parent module first like

extern crate uselog_rs;

No runtime deps