MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / getLogLevel

Method getLogLevel

src/Base/Console.cpp:289–303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

287}
288
289int* ConsoleSingleton::getLogLevel(const char* tag, const bool create)
290{
291 if (!tag) {
292 tag = "";
293 }
294 if (_logLevels.contains(tag)) {
295 return &_logLevels[tag];
296 }
297 if (!create) {
298 return nullptr;
299 }
300 int& ret = _logLevels[tag];
301 ret = -1;
302 return &ret;
303}
304
305void ConsoleSingleton::refresh() const
306{

Callers 5

sSetLogLevelMethod · 0.80
sGetLogLevelMethod · 0.80
initConfigMethod · 0.80
_isEnabledForMethod · 0.80
LogLevelFunction · 0.80

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected