We need to associate colors with information, warning and error logs. To do this, make an AsciiColor class in the project which is responsible for outputting text with a specified color into the terminal. It can be used similar to the following examples:-
std::string yellowText = AsciiColor::colorized("This text will be visible in yellow\n", Color::Yellow);
Use ANSI Escape codes for colors for now
We need to associate colors with information, warning and error logs. To do this, make an
AsciiColorclass in the project which is responsible for outputting text with a specified color into the terminal. It can be used similar to the following examples:-std::string yellowText = AsciiColor::colorized("This text will be visible in yellow\n", Color::Yellow);Use ANSI Escape codes for colors for now