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

Function tail

src/log.rs:46–49  ·  view source on GitHub ↗
(limit: usize)

Source from the content-addressed store, hash-verified

44}
45
46pub fn tail(limit: usize) -> Vec<LoggedMessage> {
47 let ring = COLLECTOR.ring.lock().unwrap();
48 ring.iter().rev().take(limit).cloned().collect()
49}
50
51#[derive(Debug, Clone)]
52pub struct LoggedMessage {

Callers 1

updateMethod · 0.85

Calls 1

iterMethod · 0.80

Tested by

no test coverage detected