mirror of
https://github.com/FairRootGroup/FairLogger.git
synced 2025-10-13 00:31:12 +00:00
add string version of Logging()
This commit is contained in:
parent
24001470e5
commit
de02bd068f
|
@ -320,6 +320,19 @@ bool Logger::Logging(Severity severity)
|
|||
}
|
||||
}
|
||||
|
||||
bool Logger::Logging(const std::string& severityStr)
|
||||
{
|
||||
if (fSeverityMap.count(severityStr))
|
||||
{
|
||||
return Logging(fSeverityMap.at(severityStr));
|
||||
}
|
||||
else
|
||||
{
|
||||
LOG(error) << "Unknown severity setting: '" << severityStr;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
void Logger::SetVerbosity(const Verbosity verbosity)
|
||||
{
|
||||
fVerbosity = verbosity;
|
||||
|
|
|
@ -124,6 +124,7 @@ class Logger
|
|||
static void SetCustomSeverity(const std::string& key, const std::string& severityStr);
|
||||
|
||||
static bool Logging(const Severity severity);
|
||||
static bool Logging(const std::string& severityStr);
|
||||
|
||||
static void SetVerbosity(const Verbosity verbosity);
|
||||
static void SetVerbosity(const std::string& verbosityStr);
|
||||
|
|
Loading…
Reference in New Issue
Block a user