slog2-extra

Crates.ioslog2-extra
lib.rsslog2-extra
version0.1.0
created_at2025-09-13 23:22:17.841724+00
updated_at2025-09-13 23:22:17.841724+00
descriptionA 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
repositoryhttps://github.com/mounten/slog2
max_upload_size
id1838226
size5,159
Jens Heilmann (mounten)

documentation

README

slog2-extra

License Crates.io Docs.rs

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.

Usage

Add this to your Cargo.toml:

[dependencies]
slog2-extra = "0.1"

Example

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");

Target Support

This crate was tested for targets aarch64-unknown-nto-qnx800, x86_64-pc-nto-qnx800 with the rustc that is shipped in the qnxsoftwarecenter.

Commit count: 13

cargo fmt