add a command line to enable/disable the color format in the fairmq log console output

This commit is contained in:
NicolasWinckler
2015-11-20 15:25:34 +01:00
parent 10d6482716
commit 35c64c67a2
5 changed files with 16 additions and 3 deletions

View File

@@ -61,6 +61,9 @@ int FairMQProgOptions::ParseAll(const int argc, char** argv, bool allowUnregiste
// set log level before printing (default is 0 = DEBUG level)
std::string verbose=GetValue<std::string>("verbose");
bool color_format=GetValue<bool>("log-color-format");
if(!color_format)
reinit_logger(false);
//SET_LOG_LEVEL(DEBUG);
if (fSeverityMap.count(verbose))
{