| Crates.io | slog2-extra |
| lib.rs | slog2-extra |
| version | 0.1.0 |
| created_at | 2025-09-13 23:22:17.841724+00 |
| updated_at | 2025-09-13 23:22:17.841724+00 |
| description | A crate that wraps methods defined in `libslog2-extra` 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 | 1838226 |
| size | 5,159 |
A crate that wraps methods defined in libslog2-extra in an idomatic rust interface. Also exposes all unsafe c ffi functions via a ffi module.
libslog2-extra is used to dump/obfuscate/hash logging buffers data from the slogger2 system logger daemon.
Add this to your Cargo.toml:
[dependencies]
slog2-extra = "0.1"
Dump all logs to a file:
let file = File::create("dumped_logs.log").expect("Couldn't create file");
dump_logs_to_file(&file, Some(DumpFlags::DUMP_LOGS_ALL)).expect("Couldn't dump logs to file");
This crate was tested for targets aarch64-unknown-nto-qnx800, x86_64-pc-nto-qnx800 with the rustc that is shipped in the qnxsoftwarecenter.