MCPcopy Create free account
hub / github.com/elastic/devfiler / install

Function install

src/log.rs:34–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32}
33
34pub fn install() {
35 let filter = EnvFilter::from_env("DEVFILER_LOG")
36 .add_directive(LevelFilter::WARN.into())
37 .add_directive("devfiler=info".parse().expect("must parse"));
38
39 SubscriberBuilder::default()
40 .with_env_filter(filter)
41 .finish()
42 .with(&*COLLECTOR)
43 .init();
44}
45
46pub fn tail(limit: usize) -> Vec<LoggedMessage> {
47 let ring = COLLECTOR.ring.lock().unwrap();

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected