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

Method LogCategoriesList

src/logging.cpp:286–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284}
285
286std::vector<LogCategory> BCLog::Logger::LogCategoriesList() const
287{
288 std::vector<LogCategory> ret;
289 ret.reserve(LOG_CATEGORIES_BY_STR.size());
290 for (const auto& [category, flag] : LOG_CATEGORIES_BY_STR) {
291 ret.push_back(LogCategory{.category = category, .active = WillLogCategory(flag)});
292 }
293 return ret;
294}
295
296/** Log severity levels that can be selected by the user. */
297static constexpr std::array<BCLog::Level, 3> LogLevelsList()

Callers 1

loggingFunction · 0.80

Calls 3

reserveMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected