MCPcopy Create free account
hub / github.com/OpenMW/openmw / toLevel

Function toLevel

components/debug/debugging.cpp:337–351  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

335#endif
336
337 Level toLevel(std::string_view value)
338 {
339 if (value == "ERROR")
340 return Error;
341 if (value == "WARNING")
342 return Warning;
343 if (value == "INFO")
344 return Info;
345 if (value == "VERBOSE")
346 return Verbose;
347 if (value == "DEBUG")
348 return Debug;
349
350 return Verbose;
351 }
352
353 static std::unique_ptr<std::ostream> rawStdout = nullptr;
354 static std::unique_ptr<std::ostream> rawStderr = nullptr;

Callers 2

getDebugLevelFunction · 0.85
getRecastMaxLogLevelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected