MCPcopy Create free account
hub / github.com/ElementsProject/elements / GetLogCategory

Function GetLogCategory

src/logging.cpp:173–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171};
172
173bool GetLogCategory(BCLog::LogFlags& flag, const std::string& str)
174{
175 if (str.empty()) {
176 flag = BCLog::ALL;
177 return true;
178 }
179 for (const CLogCategoryDesc& category_desc : LogCategories) {
180 if (category_desc.category == str) {
181 flag = category_desc.flag;
182 return true;
183 }
184 }
185 return false;
186}
187
188std::string LogLevelToStr(BCLog::Level level)
189{

Callers 3

EnableCategoryMethod · 0.85
DisableCategoryMethod · 0.85
BOOST_FIXTURE_TEST_CASEFunction · 0.85

Calls 1

emptyMethod · 0.45

Tested by 1

BOOST_FIXTURE_TEST_CASEFunction · 0.68