Expand description
fmt_log
This module contains macros for logging to the console
using the std::println!
or std::eprintln!
macros, but also returns the
formatted string.
Disclaimer: this started as a fun experiment on how to create
a custom macro like the std::println!
one,
and now I’m using it to print logs and get the formatted output
at the same time.
Macros§
- fmt_
errorf - Logs to the console using
std::eprintln!
macro and returns the formatted string. - fmt_
printf - Logs to the console using
std::println!
macro and returns the formatted string.