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

Function logLevelToString

cpp_src/tools/stringstools.cc:818–826  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

816}
817
818std::string_view logLevelToString(LogLevel level) noexcept {
819 for (auto& it : stringtools_impl::kLogLevels) {
820 if (it.second == level) {
821 return it.first;
822 }
823 }
824 constexpr static std::string_view kNone("none");
825 return kNone;
826}
827
828StrictMode strictModeFromString(std::string_view strStrictMode) {
829 auto configModeIt = stringtools_impl::kStrictModes.find(strStrictMode);

Callers 9

InitMethod · 0.85
FromJSONMethod · 0.85
GetJSONMethod · 0.85
FromJSONMethod · 0.85
GetJSONMethod · 0.85
GetYAMLMethod · 0.85
GetJSONMethod · 0.85

Calls

no outgoing calls

Tested by 3

InitMethod · 0.68