ericrobolson / g_logger

A crate written in Rust that provides logging and replaying of events.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A library for logging events and replaying them. All serialized bytes are in little endian.

To use enable the 'log' feature. Otherwise this defaults to a no_std crate.

To use enable the feature log.

Call Logger::log(bytes) to log an item.

Call Logger::save_logs(file_path) to dump the log file.

Call Logger::load_replay(file_path) to read a log file.

Call Logger::read_replay(mut buffer) to attempt to read an event.

Roadmap:

  • Return Result<_, Error> instead of panics

About

A crate written in Rust that provides logging and replaying of events.

License:MIT License


Languages

Language:Rust 100.0%