MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / SetLogLevel

Method SetLogLevel

src/logging.cpp:597–603  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

595}
596
597bool BCLog::Logger::SetLogLevel(std::string_view level_str)
598{
599 const auto level = GetLogLevel(level_str);
600 if (!level.has_value() || level.value() > MAX_USER_SETABLE_SEVERITY_LEVEL) return false;
601 m_log_level = level.value();
602 return true;
603}
604
605bool BCLog::Logger::SetCategoryLogLevel(std::string_view category_str, std::string_view level_str)
606{

Callers 8

SetLoggingLevelFunction · 0.45
EnvTestingSetupMethod · 0.45
~EnvTestingSetupMethod · 0.45
ResetLoggerFunction · 0.45
LogSetupMethod · 0.45
~LogSetupMethod · 0.45
BOOST_FIXTURE_TEST_CASEFunction · 0.45

Calls 3

GetLogLevelFunction · 0.85
has_valueMethod · 0.45
valueMethod · 0.45

Tested by 6

EnvTestingSetupMethod · 0.36
~EnvTestingSetupMethod · 0.36
ResetLoggerFunction · 0.36
LogSetupMethod · 0.36
~LogSetupMethod · 0.36
BOOST_FIXTURE_TEST_CASEFunction · 0.36