mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
- Replace the fairmq logger with one based on Boost.Log
- Adapt FairProgOptions to the new logger
This commit is contained in:
committed by
Mohammad Al-Turany
parent
bea05ea6c1
commit
e0ca1f62b3
@@ -57,8 +57,17 @@ int FairMQProgOptions::ParseAll(const int argc, char** argv, bool AllowUnregiste
|
||||
}
|
||||
|
||||
// set log level before printing (default is 0 = DEBUG level)
|
||||
int verbose=GetValue<int>("verbose");
|
||||
SET_LOGGER_LEVEL(verbose);
|
||||
std::string verbose=GetValue<std::string>("verbose");
|
||||
//SET_LOG_LEVEL(DEBUG);
|
||||
if(fSeverity_map.count(verbose))
|
||||
{
|
||||
set_global_log_level(log_op::operation::GREATER_EQ_THAN,fSeverity_map.at(verbose));
|
||||
}
|
||||
else
|
||||
{
|
||||
LOG(ERROR)<<" verbosity level '"<<verbose<<"' unknown, it will be set to INFO";
|
||||
set_global_log_level(log_op::operation::GREATER_EQ_THAN,fSeverity_map.at("RESULTS"));
|
||||
}
|
||||
|
||||
PrintOptions();
|
||||
|
||||
|
Reference in New Issue
Block a user