use layla_log::*;
#[cfg(not(feature = "async"))]
#[test]
fn test_disable() {
clean_log();
disable_log();
info!("This should not be logged");
warn!("This should not be logged");
error!("This should not be logged");
debug!("This should not be logged");
trace!("This should not be logged");
enable_log();
info!("This should be logged");
}
#[cfg(feature = "async")]
#[tokio::test]
async fn test_disable() {
clean_log().await;
disable_log().await;
error!("This should not be logged");
warn!("This should not be logged");
info!("This should not be logged");
debug!("This should not be logged");
trace!("This should not be logged");
enable_log().await;
info!("This should be logged");
}