{"repo":"9999years/tracing-human-layer","free":true,"listed":false,"github":"https://github.com/9999years/tracing-human-layer","clone":"git clone https://github.com/9999years/tracing-human-layer.git","description":"A human-friendly output layer for the Rust `tracing` library","language":"Rust","stars":11,"topics":["rust","tracing","tracing-subscriber"],"license":null,"category":"analytics","readme_excerpt":"tracing-human-layer A human-friendly and colorful terminal output [ tracing subscriber::Layer ][tracing subscriber::Layer] for [ tracing ][tracing]. Features: - Line-wrapping ([optional][textwrap-options]) - Colorful output ([customizable][styles] and [optional][disable-color]) - Blank lines between long log messages - One-line format for short log messages with one short field Quick start Performance TL;DR: Half of the cost of logging is writing to stderr. I haven't done too much performance work on tracing-human-layer , but I do have a couple benchmarks. It seems to take 1.92-6.17µs to format an event (including emitting a span and event), with the exact cost depending on whether or not color output ([ HumanLayer::with color output ][disable-color]) or text wrapping ([ HumanLayer::with textwrap options ][textwrap-options]) is enabled. Formatting an event and writing it to stderr takes 12.55µs, so actually showing the logs to the user is about 2× slower than just formatting them. [tracing subscriber::Layer]: https://docs.rs/tracing-subscriber/latest/tracing subscriber/layer/trait.Layer.html [tracing]: https://docs.rs/tracing/latest/tracing/ [textwrap-options]: https://docs.rs/tracing-human-layer/latest/tracing human layer/struct.HumanLayer.html#method.with textwrap options \"line-wrapping can be disabled or customized\" [styles]: https://docs.rs/tracing-human-layer/latest/tracing human layer/struct.HumanLayer.html#method.with style provider \"output colors can be customized\" [d","default_branch":null,"files":null,"tree":[],"storefront":"/r/9999years","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/9999years/tracing-human-layer/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}