MCPcopy Create free account
hub / github.com/Restream/reindexer / logLevelFromString

Function logLevelFromString

cpp_src/tools/stringstools.cc:810–816  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

808}
809
810LogLevel logLevelFromString(std::string_view strLogLevel) noexcept {
811 auto configLevelIt = stringtools_impl::kLogLevels.find(strLogLevel);
812 if (configLevelIt != stringtools_impl::kLogLevels.end()) {
813 return configLevelIt->second;
814 }
815 return LogNone;
816}
817
818std::string_view logLevelToString(LogLevel level) noexcept {
819 for (auto& it : stringtools_impl::kLogLevels) {

Callers 6

FromJSONMethod · 0.85
handleConfigActionMethod · 0.85
initMethod · 0.85
FromYAMLMethod · 0.85
FromJSONMethod · 0.85
FromJSONMethod · 0.85

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected