mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
add a command line to enable/disable the color format in the fairmq log console output
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
Reference in New Issue
Block a user