MCPcopy Index your code
hub / github.com/cloud-hypervisor/cloud-hypervisor / new

Method new

cloud-hypervisor/src/logger.rs:111–118  ·  view source on GitHub ↗
(output: Box<dyn Write + Send>, format: &str)

Source from the content-addressed store, hash-verified

109
110impl Logger {
111 pub fn new(output: Box<dyn Write + Send>, format: &str) -> Result<Self, Error> {
112 Ok(Self {
113 output: Mutex::new(output),
114 start: Instant::now(),
115 pid: std::process::id(),
116 tokens: parse_format(format)?,
117 })
118 }
119}
120
121impl log::Log for Logger {

Callers

nothing calls this directly

Calls 2

newFunction · 0.85
parse_formatFunction · 0.85

Tested by

no test coverage detected