Kagome
Polkadot Runtime Engine in C++17
internal_api_impl.cpp
Go to the documentation of this file.
1 
7 
8 #include "log/logger.hpp"
9 
10 namespace kagome::api {
11 
12  outcome::result<void> InternalApiImpl::setLogLevel(
13  const std::string &group, const std::string &level_str) {
14  OUTCOME_TRY(level, log::str2lvl(level_str));
15 
16  if (not log::setLevelOfGroup(group, level)) {
18  }
19 
20  return outcome::success();
21  }
22 
23 } // namespace kagome::api
outcome::result< void > setLogLevel(const std::string &group, const std::string &level) override
outcome::result< Level > str2lvl(std::string_view str)
Definition: logger.cpp:41
bool setLevelOfGroup(const std::string &group_name, Level level)
Definition: logger.cpp:132