1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#[macro_use] extern crate log; #[macro_use] extern crate lazy_static; extern crate notify; extern crate pretty_env_logger; extern crate num_cpus; extern crate chashmap; extern crate crossbeam_channel; pub mod tail_reader; #[cfg(test)] mod tests { use super::tail_reader::TailReader; #[test] fn test() { TailReader::new("/var/log/syslog".to_owned(),|l| println!("{}",l.line)).tail().unwrap(); } }