MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / terminal_layer

Function terminal_layer

atomic-cli/src/logging/mod.rs:268–275  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

266}
267
268fn terminal_layer() -> BoxedLayer {
269 let directives = terminal_directives(std::env::var("RUST_LOG").ok(), verbose_requested());
270 tracing_subscriber::fmt::layer()
271 .with_writer(std::io::stderr)
272 .event_format(terminal::EnvLoggerFormat)
273 .with_filter(EnvFilter::builder().parse_lossy(directives))
274 .boxed()
275}
276
277/// Why the log file could not be opened.
278#[derive(Debug)]

Callers

nothing calls this directly

Calls 3

terminal_directivesFunction · 0.85
verbose_requestedFunction · 0.85
okMethod · 0.45

Tested by

no test coverage detected