rustainers 0.15.1

A simple, opinionated way to run containers for tests.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use tracing::Level;
use tracing_subscriber::fmt::format::FmtSpan;
use tracing_subscriber::fmt::time;

/// Initialize tracing for testing purpose
pub fn init_tracing(level: Level) {
    tracing_subscriber::fmt()
        .pretty()
        .with_line_number(true)
        .with_thread_names(true)
        .with_span_events(FmtSpan::NONE)
        .with_timer(time::uptime())
        .with_max_level(level)
        .init();
}