use std::sync::{Arc, Mutex};
use std::io::Write;
-pub trait Output : Clone + Sync + Send + 'static {
+pub trait Output : Clone + 'static {
fn locked_write(&self, data: &[u8]);
}
impl<Out: Output> Logger for TestLogger<Out> {
fn log(&self, record: &Record) {
write!(LockedWriteAdapter(&self.out),
- "{:<5} {} [{} : {}, {}] {}\n", record.level.to_string(), self.id, record.module_path, record.file, record.line, record.args)
+ "{:<5} {} [{} : {}] {}\n", record.level.to_string(), self.id, record.module_path, record.line, record.args)
.unwrap();
}
}