slog2-extra 0.1.0

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.
Documentation
  • Coverage
  • 55%
    22 out of 40 items documented0 out of 26 items with examples
  • Size
  • Source code size: 4.69 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.71 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 16s Average build duration of successful builds.
  • all releases: 16s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • mounten/slog2
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • mounten

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.