layla-log 0.3.2

A simple logger library.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use layla_log::*;

#[cfg(not(feature = "async"))]
#[test]
fn universal_log() {
    clean_log();

    log!(LogLevel::Trace, "Hello, {}!", "world");
}

#[cfg(feature = "async")]
#[tokio::test]
async fn universal_log() {
    clean_log().await;

    log!(LogLevel::Trace, "Hello, {}!", "world");
}