1 unstable release
Uses new Rust 2024
| 0.1.0 | May 20, 2025 |
|---|
#97 in #tracing-subscriber
74KB
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
~7–12MB
~135K SLoC