radixdlt-scrypto
radixdlt-scrypto copied to clipboard
Add colored output to the following macros `info!()` , `warn!()` and `error!()`
When running scrypto tests with scrypto test -- --nocapture
due to the amount of output displayed it can be hard to track some of the info messages you have logged. Could we leverage the colored
crate to add colored output to the following macros:
info!()
-> blue
warn!()
-> yellow
error!()
-> red
I think it might be possible to do something like this:
use colored::Colorize;
...
macro_rules! info {
($($args: expr),+) => {{
::scrypto::core::Logger::log(scrypto::core::Level::Info.blue(), ::sbor::rust::format!($($args),+).blue());
}};
}
By convention, info
usually either green or default terminal colour
By convention,
info
usually either green or default terminal colour
It was the default white color that was causing the readability issues, but sure green or blue is fine with me 😁 .
Will add it internal tracking of desired resim features.