MCPcopy Create free account
hub / github.com/aws/amazon-q-developer-cli / setup_logging

Method setup_logging

crates/agent/src/cli/mod.rs:48–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

46 }
47
48 fn setup_logging() -> Result<WorkerGuard> {
49 let env_filter = EnvFilter::try_from_default_env().unwrap_or_default();
50 let (non_blocking, _file_guard) = NonBlocking::new(RollingFileAppender::new(Rotation::NEVER, ".", "chat.log"));
51 let file_layer = tracing_subscriber::fmt::layer().with_writer(non_blocking);
52 // .with_ansi(false);
53
54 Registry::default().with(env_filter).with(file_layer).init();
55
56 Ok(_file_guard)
57 }
58}
59
60#[derive(Debug, Clone, Subcommand)]

Callers

nothing calls this directly

Calls 1

initMethod · 0.45

Tested by

no test coverage detected