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

Function LogAcceptCategory

src/logging.h:246–249  ·  view source on GitHub ↗

Return true if log accepts specified category */

Source from the content-addressed store, hash-verified

244
245/** Return true if log accepts specified category */
246static inline bool LogAcceptCategory(BCLog::LogFlags category)
247{
248 return LogInstance().WillLogCategory(category);
249}
250
251/** Return true if str parses as a log category and set the flag */
252bool GetLogCategory(BCLog::LogFlags& flag, const std::string& str);

Callers 4

AddTimeDataFunction · 0.85
LogvMethod · 0.85
WriteBatchMethod · 0.85
KnapsackSolverFunction · 0.85

Calls 1

WillLogCategoryMethod · 0.80

Tested by

no test coverage detected