scrub_log
A log formatter that has a default with colors, filename, line number, and program runtime.
Usage
Add this crate to Cargo.toml
[]
= { = "https://github.com/glalonde/scrub_log" }
Now you can easily print a nice log line for all your printf debugging needs, glog style.
use ;
Example output:
TRACE 7.761µs [log_example:5] Lorem ipsum
DEBUG 44.51µs [log_example:6] dolor sit amet,
INFO 58.178µs [log_example:7] consectetur adipiscing elit,
WARNING 68.099µs [log_example:8] ed do eiusmod
ERROR 77.319µs [log_example:9] tempor incididunt