msgpack-tracing-printer 0.1.0

Compact storage for tracing using msgpack
msgpack-tracing-printer-0.1.0 is not a library.

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