3 releases

Uses new Rust 2024

new 0.1.2 May 22, 2025
0.1.1 May 20, 2025
0.1.0 May 20, 2025

#371 in Debugging

Download history 107/week @ 2025-05-15

107 downloads per month
Used in msgpack-tracing-printer

MIT license

68KB
2K SLoC

msgpack tracing

Compact storage for tracing using msgpack

Installing Logger

Single File

fn main() {
    msgpack_tracing::install_logger(
        File::create(path).unwrap(),
        msgpack_tracing::WithConsole::AnsiColors,
    )
}

Log Rotate

fn main() {
    msgpack_tracing::install_rotate_logger(
        path,
        max_len,
        msgpack_tracing::WithConsole::AnsiColors,
    )
    .unwrap()
}

Parsing file

Use the sub-crate msgpack-tracing-printer for parsing files.

cargo run -p msgpack-tracing-printer -- file.log

Dependencies

~3–11MB
~109K SLoC