| Crates.io | slog2-parse |
| lib.rs | slog2-parse |
| version | 0.1.1 |
| created_at | 2025-09-13 23:22:04.147851+00 |
| updated_at | 2025-09-14 15:09:34.783944+00 |
| description | A crate that wraps methods defined in `libslog2parse` in an idomatic rust interface. Also exposes all unsafe c ffi functions via a `ffi` module. |
| homepage | |
| repository | https://github.com/mounten/slog2 |
| max_upload_size | |
| id | 1838225 |
| size | 25,885 |
A crate that wraps methods defined in libslog2parse in an idomatic rust interface. Also exposes all unsafe c ffi functions via a ffi module.
libslog2parse is used to to read logging buffers from the slogger2 system logger daemon.
Add this to your Cargo.toml:
[dependencies]
slog2-parse = "0.1"
For more examples examples for how to use this crate.
Register a callback to parse all existing and incoming log messages for all buffers:
parse_all(Some(ParseFlags::DYNAMIC), None, None, |info| {
println!("{:?}", info);
Ok(())
})?;
This crate was tested for targets aarch64-unknown-nto-qnx800, x86_64-pc-nto-qnx800 with the rustc that is shipped in the qnxsoftwarecenter.