You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Stdout works perfect but when writing to file ANSI escape codes are in the file. I can strip codes with regex as workaround but I am sure there is more idiomatic way to do it.
The text was updated successfully, but these errors were encountered:
I am using flexy_logger for simultaneously log to file and stdout. I try using that macro:
macro_rules! bold_red {
($($arg:tt)) => (
log::log!(log::Level::Info, "{}",
format_args!("\x1b[1;31m{}\x1b[0m", format_args!($($arg)))
);
)
}
Stdout works perfect but when writing to file ANSI escape codes are in the file. I can strip codes with regex as workaround but I am sure there is more idiomatic way to do it.
The text was updated successfully, but these errors were encountered: