use elite_journal::entry::{parse_journal_dir, Event};

fn main() {
    let entries = parse_journal_dir("dumps/").unwrap();

    // Print all FSDJumps to Sol.
    for entry in entries.iter() {
        if let Event::FsdJump(event) = &entry.event {
            if event.system.name == "Sol" {
                println!("{}", entry.timestamp);
                println!("{:#?}", event);
            }
        }
    }

    println!("total log count: {}.", entries.len());
}
