MCPcopy Create free account
hub / github.com/Notgnoshi/generative / init_test_logging

Function init_test_logging

generative/lib.rs:18–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16#[cfg(test)]
17#[ctor::ctor]
18fn init_test_logging() {
19 let filter = tracing_subscriber::EnvFilter::builder()
20 .with_default_directive(tracing::Level::TRACE.into())
21 .from_env_lossy();
22 tracing_subscriber::fmt()
23 .with_env_filter(filter)
24 .with_ansi(true)
25 .with_test_writer()
26 .init();
27}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected