MCPcopy Create free account
hub / github.com/GameTechDev/PresentMon / ParseLogLevel_

Function ParseLogLevel_

IntelPresentMon/PresentMonAPI2Tests/Logging.cpp:76–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74 }
75
76 util::log::Level ParseLogLevel_(const std::string& logLevel)
77 {
78 if (logLevel.empty()) {
79 return util::log::Level::Debug;
80 }
81 const auto levelMap = util::log::GetLevelMapNarrow();
82 const auto key = util::str::ToLower(logLevel);
83 if (auto it = levelMap.find(key); it != levelMap.end()) {
84 return it->second;
85 }
86 return util::log::Level::Debug;
87 }
88
89 std::string BuildLogFileName_(const std::filesystem::path& folder)
90 {

Callers 1

SetupTestLoggingFunction · 0.85

Calls 4

GetLevelMapNarrowFunction · 0.85
ToLowerFunction · 0.85
emptyMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected