MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / setLogLevel

Method setLogLevel

src/openms/source/CONCEPT/LogConfigHandler.cpp:217–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215 }
216
217 void LogConfigHandler::setLogLevel(const String & log_level)
218 {
219 std::vector<String> lvls = {"DEBUG", "INFO", "WARNING", "ERROR", "FATAL_ERROR"};
220 for (const auto& lvl : lvls)
221 {
222 if (lvl == log_level) break;
223 getLogStreamByName_(lvl).removeAllStreams();
224 }
225 }
226
227 Logger::LogStream & LogConfigHandler::getLogStreamByName_(const String & stream_name)
228 {

Callers 1

solveMethod · 0.80

Calls 1

removeAllStreamsMethod · 0.80

Tested by

no test coverage detected