rust-lightning/fuzz/fuzz_targets/utils/test_logger.rs
2018-08-16 23:11:15 -04:00

10 lines
314 B
Rust

use lightning::util::logger::{Logger, Record};
pub struct TestLogger {}
impl Logger for TestLogger {
fn log(&self, record: &Record) {
#[cfg(any(test, not(feature = "fuzztarget")))]
println!("{:<5} [{} : {}, {}] {}", record.level.to_string(), record.module_path, record.file, record.line, record.args);
}
}