(output: Box<dyn Write + Send>, format: &str)
| 109 | |
| 110 | impl 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 | |
| 121 | impl log::Log for Logger { |
nothing calls this directly
no test coverage detected