blob: aca6aba900adf284a1c889d54ac3d7256401650e (
plain) (
blame)
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 failure;
extern crate libc;
mod journald;
use std::process;
fn main() {
let mut journal = match journald::open_journal() {
Ok(journal) => journal,
Err(e) => {
println!("{}", e);
process::exit(1);
},
};
println!("foo");
let entry = journal.read_next();
println!("Entry: {:?}", entry)
}
|